summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drivers/char/ipmi/ipmi_msghandler.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/char/ipmi/ipmi_msghandler.c b/drivers/char/ipmi/ipmi_msghandler.c
index c7cc885e12fa..f40f281b46b3 100644
--- a/drivers/char/ipmi/ipmi_msghandler.c
+++ b/drivers/char/ipmi/ipmi_msghandler.c
@@ -4808,6 +4808,10 @@ static void smi_work(struct work_struct *t)
handle_new_recv_msgs(intf);
+ /* Nothing below applies during panic time. */
+ if (run_to_completion)
+ return;
+
/*
* If the pretimout count is non-zero, decrement one from it and
* deliver pretimeouts to all the users.