summaryrefslogtreecommitdiff
path: root/drivers/char
diff options
context:
space:
mode:
authorCorey Minyard <cminyard@mvista.com>2015-02-19 20:29:24 +0300
committerCorey Minyard <cminyard@mvista.com>2015-09-03 23:02:24 +0300
commitb2234ee9fc059c17e811a365383e3412a2f50bed (patch)
tree1d177440e18205d583c646f8b025f28e17fd6746 /drivers/char
parentcca85f19c260df495a487495479c67803b25fa8a (diff)
downloadlinux-b2234ee9fc059c17e811a365383e3412a2f50bed.tar.xz
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>
Diffstat (limited to 'drivers/char')
-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 bf75f6361773..ef4a418f630a 100644
--- a/drivers/char/ipmi/ipmi_msghandler.c
+++ b/drivers/char/ipmi/ipmi_msghandler.c
@@ -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)