]> www.infradead.org Git - users/willy/linux.git/commit
ipmi: Fix return value when a message is truncated
authorCorey Minyard <cminyard@mvista.com>
Fri, 16 Nov 2018 15:55:47 +0000 (09:55 -0600)
committerCorey Minyard <cminyard@mvista.com>
Fri, 16 Nov 2018 15:55:47 +0000 (09:55 -0600)
commit9fd96b0715d52f06d4c0ec99d90a779a05c7c482
treef174c564612a0e3884b9fcd713de37928f6ba1a5
parent99d18a3da86139fabf23669cac3928561dbcd37b
ipmi: Fix return value when a message is truncated

The user can ask the message to be returned even if it didn't supply
enough memory for the data, and it will return an error but still
fills in as much data as possible.   However, the return value
wasn't being set to an error, it was being overwritten.  Create a
second return value for that case.

Signed-off-by: Corey Minyard <cminyard@mvista.com>
drivers/char/ipmi/ipmi_devintf.c