+13
−11
Loading
There is a race on checking the state in the sender, it needs to be checked under a lock. But you also need a check to avoid issues with a misbehaving BMC for run to completion mode. So leave the check at the beginning for run to completion, and add a check under the lock to avoid the race. Reported-by:Rafael J. Wysocki <rafael@kernel.org> Fixes: bc3a9d21 ("ipmi:si: Gracefully handle if the BMC is non-functional") Cc: stable@vger.kernel.org # 4.18 Signed-off-by:
Corey Minyard <corey@minyard.net> Reviewed-by:
Rafael J. Wysocki (Intel) <rafael@kernel.org>