Commit 6bd0eb6
committed
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: Corey Minyard <cminyard@mvista.com>1 parent 87105e0 commit 6bd0eb6
1 file changed
+1
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
481 | 481 | | |
482 | 482 | | |
483 | 483 | | |
484 | | - | |
485 | | - | |
486 | 484 | | |
487 | 485 | | |
488 | 486 | | |
| |||
1270 | 1268 | | |
1271 | 1269 | | |
1272 | 1270 | | |
1273 | | - | |
1274 | | - | |
| 1271 | + | |
1275 | 1272 | | |
1276 | | - | |
1277 | 1273 | | |
1278 | 1274 | | |
1279 | 1275 | | |
| |||
0 commit comments