From: Corey Minyard Date: Thu, 19 Feb 2015 17:29:24 +0000 (-0600) Subject: ipmi: Add a comment in how messages are delivered from the lower layer X-Git-Tag: v5.15~15106^2~13 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b2234ee9fc059c17e811a365383e3412a2f50bed;p=platform%2Fkernel%2Flinux-starfive.git ipmi: Add a comment in how messages are delivered from the lower layer To avoid confusion in the future. Signed-off-by: Corey Minyard --- diff --git a/drivers/char/ipmi/ipmi_msghandler.c b/drivers/char/ipmi/ipmi_msghandler.c index bf75f63..ef4a418 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)