mirror of
https://github.com/torvalds/linux.git
synced 2024-11-23 12:42:02 +00:00
ipmi: Fix a problem that messages are not issued in run_to_completion mode
start_next_msg() issues a message placed in smi_info->waiting_msg if it is non-NULL. However, sender() sets a message to smi_info->curr_msg and NULL to smi_info->waiting_msg in the context of run_to_completion mode. As the result, it leads an infinite loop by waiting the completion of unissued message when leaving dying message after kernel panic. sender() should set the message to smi_info->waiting_msg not curr_msg. Signed-off-by: Hidehiro Kawai <hidehiro.kawai.ez@hitachi.com> Signed-off-by: Corey Minyard <cminyard@mvista.com>
This commit is contained in:
parent
a182a4b2b3
commit
9f8127048a
@ -942,8 +942,7 @@ static void sender(void *send_info,
|
||||
* If we are running to completion, start it and run
|
||||
* transactions until everything is clear.
|
||||
*/
|
||||
smi_info->curr_msg = msg;
|
||||
smi_info->waiting_msg = NULL;
|
||||
smi_info->waiting_msg = msg;
|
||||
|
||||
/*
|
||||
* Run to completion means we are single-threaded, no
|
||||
|
Loading…
Reference in New Issue
Block a user