]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.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>
Sun, 10 Feb 2019 01:48:42 +0000 (19:48 -0600)
commit95ac0daa0ca98ad8ac23769021144f8bf04cf406
treec12d06d3845d0bb90d0b6ddc7c671fc273be992a
parentd5a2197be15ef600c4878d7aaaea8bfb5a06f0d9
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