mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 03:44:45 +01:00
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: bc3a9d2177 ("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>
This commit is contained in:
parent
6b157b408d
commit
52c9ee202e
1 changed files with 6 additions and 0 deletions
|
|
@ -809,6 +809,12 @@ restart:
|
|||
*/
|
||||
return_hosed_msg(smi_info, IPMI_BUS_ERR);
|
||||
}
|
||||
if (smi_info->waiting_msg != NULL) {
|
||||
/* Also handle if there was a message waiting. */
|
||||
smi_info->curr_msg = smi_info->waiting_msg;
|
||||
smi_info->waiting_msg = NULL;
|
||||
return_hosed_msg(smi_info, IPMI_BUS_ERR);
|
||||
}
|
||||
smi_mod_timer(smi_info, jiffies + SI_TIMEOUT_HOSED);
|
||||
goto out;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue