]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ipmi:msghandler: Handle error returns from the SMI sender
authorCorey Minyard <corey@minyard.net>
Fri, 13 Feb 2026 03:56:54 +0000 (21:56 -0600)
committerCorey Minyard <corey@minyard.net>
Mon, 23 Feb 2026 15:00:48 +0000 (09:00 -0600)
commit62cd145453d577113f993efd025f258dd86aa183
tree527633ebc18517b60fc52d78c0b5166e581de21d
parentf895e5df80316a308c2f7d64d13a78494630ea05
ipmi:msghandler: Handle error returns from the SMI sender

It used to be, until recently, that the sender operation on the low
level interfaces would not fail.  That's not the case any more with
recent changes.

So check the return value from the sender operation, and propagate it
back up from there and handle the errors in all places.

Reported-by: Rafael J. Wysocki <rafael@kernel.org>
Fixes: bc3a9d217755 ("ipmi:si: Gracefully handle if the BMC is non-functional")
Cc: stable@vger.kernel.org # 4.18
Signed-off-by: Corey Minyard <corey@minyard.net>
Reviewed-by: Rafael J. Wysocki (Intel) <rafael@kernel.org>
drivers/char/ipmi/ipmi_msghandler.c