mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
[PATCH] pcmcia: fix task state at pccard thread exit
The pccardd thread has a race in it that it can shutdown in the TASK_INTERRUPTIBLE state. Make sure we mark ourselves runnable again as we remove ourselves from the wait queue. Signed-off-by: Steven Rostedt <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
2e457ef667
commit
220ec02911
1 changed files with 3 additions and 0 deletions
|
|
@ -689,6 +689,9 @@ static int pccardd(void *__skt)
|
|||
schedule();
|
||||
try_to_freeze();
|
||||
}
|
||||
/* make sure we are running before we exit */
|
||||
set_current_state(TASK_RUNNING);
|
||||
|
||||
remove_wait_queue(&skt->thread_wait, &wait);
|
||||
|
||||
/* remove from the device core */
|
||||
|
|
|
|||
Loading…
Reference in a new issue