]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ipmi:si: Handle waiting messages when BMC failure detected
authorCorey Minyard <corey@minyard.net>
Fri, 6 Feb 2026 15:59:32 +0000 (09:59 -0600)
committerCorey Minyard <corey@minyard.net>
Fri, 6 Feb 2026 16:50:59 +0000 (10:50 -0600)
commit52c9ee202edd21d0599ac3b5a6fe1da2a2f053e5
tree61ff32c3e7d6d6d25f6506be7f6c94bd0c9a4e90
parent6b157b408d0c7d125e4d7c62e11e7d9376a5d150
ipmi:si: Handle waiting messages when BMC failure detected

If a BMC failure is detected, the current message is returned with an
error.  However, if there was a waiting message, it would not be
handled.

Add a check for the waiting message after handling the current message.

Suggested-by: Guenter Roeck <linux@roeck-us.net>
Reported-by: Rafael J. Wysocki <rafael@kernel.org>
Closes: https://lore.kernel.org/linux-acpi/CAK8fFZ58fidGUCHi5WFX0uoTPzveUUDzT=k=AAm4yWo3bAuCFg@mail.gmail.com/
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>
drivers/char/ipmi/ipmi_si_intf.c