Skip to contentSkip to conversation

usb: imx21-hcd: set task state with schedule_timeout_uninterruptible()

PATCH New Kulikov Vasiliy 1 participant 1 message Jul 26, 2010

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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().

---
 drivers/usb/host/imx21-hcd.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/usb/host/imx21-hcd.c +1 -1
index ca0e98d..3e56303 100644
@@ -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);
Signature · 1 line
1.7.0.4