ipmi: Add a comment in how messages are delivered from the lower layer
authorCorey Minyard <cminyard@mvista.com>
Thu, 19 Feb 2015 17:29:24 +0000 (11:29 -0600)
committerCorey Minyard <cminyard@mvista.com>
Thu, 3 Sep 2015 20:02:24 +0000 (15:02 -0500)
To avoid confusion in the future.

Signed-off-by: Corey Minyard <cminyard@mvista.com>
drivers/char/ipmi/ipmi_msghandler.c

index bf75f63617731595d958765b7c1582f79452f3cb..ef4a418f630aefaa3d55390705e546f43642f7cb 100644 (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)