mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-20 00:11:22 +00:00
usb: imx21-hcd: set task state with schedule_timeout_uninterruptible()
imx21_hc_reset() uses schedule_timeout() without setting state to STATE_(UN)INTERRUPTIBLE. As it is called in cycle without checking of pending signals, use schedule_timeout_uninterruptible(). Signed-off-by: Kulikov Vasiliy <segooon@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
afad19648f
commit
9a4b7c3b14
@ -1521,7 +1521,7 @@ static int imx21_hc_reset(struct usb_hcd *hcd)
|
||||
return -ETIMEDOUT;
|
||||
}
|
||||
spin_unlock_irq(&imx21->lock);
|
||||
schedule_timeout(1);
|
||||
schedule_timeout_uninterruptible(1);
|
||||
spin_lock_irq(&imx21->lock);
|
||||
}
|
||||
spin_unlock_irqrestore(&imx21->lock, flags);
|
||||
|
Loading…
Reference in New Issue
Block a user