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-Url: https://git.stricted.de/?a=commitdiff_plain;h=b2234ee9fc059c17e811a365383e3412a2f50bed;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.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 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)