Skip to content

Commit

Permalink
ipmi: Add a comment in how messages are delivered from the lower layer
Browse files Browse the repository at this point in the history
To avoid confusion in the future.

Signed-off-by: Corey Minyard <cminyard@mvista.com>
  • Loading branch information
Corey Minyard committed Sep 3, 2015
1 parent cca85f1 commit b2234ee
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/char/ipmi/ipmi_msghandler.c
Original file line number Diff line number Diff line change
Expand Up @@ -3959,6 +3959,10 @@ void ipmi_smi_msg_received(ipmi_smi_t intf,

if (!run_to_completion)
spin_lock_irqsave(&intf->xmit_msgs_lock, flags);
/*
* We can get an asynchronous event or receive message in addition
* to commands we send.
*/
if (msg == intf->curr_msg)
intf->curr_msg = NULL;
if (!run_to_completion)
Expand Down

0 comments on commit b2234ee

Please sign in to comment.