Skip to content
Commit 6bd0eb6d authored by Corey Minyard's avatar Corey Minyard
Browse files

ipmi:ssif: Fix a shutdown race



It was possible for the SSIF thread to stop and quit before the
kthread_stop() call because ssif->stopping was set before the
stop.  So only exit the SSIF thread is kthread_should_stop()
returns true.

There is no need to wake the thread, as the wait will be interrupted
by kthread_stop().

Signed-off-by: default avatarCorey Minyard <cminyard@mvista.com>
parent 87105e07
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment