1
0
Fork 0

ipmi: Add a comment in how messages are delivered from the lower layer

To avoid confusion in the future.

Signed-off-by: Corey Minyard <cminyard@mvista.com>
hifive-unleashed-5.1
Corey Minyard 2015-02-19 11:29:24 -06:00
parent cca85f19c2
commit b2234ee9fc
1 changed files with 4 additions and 0 deletions

View File

@ -3959,6 +3959,10 @@ free_msg:
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)