From: Greg Kroah-Hartman Date: Mon, 23 Jan 2006 22:17:21 +0000 (-0500) Subject: [PATCH] USB: add might_sleep() to usb_unlink_urb() to warn developers X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=e9aa795aaed0b861aaa5a8075748c9c34e2620ee;p=linux-beck.git [PATCH] USB: add might_sleep() to usb_unlink_urb() to warn developers Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/core/urb.c b/drivers/usb/core/urb.c index 081796726b95..dad4d8fd8180 100644 --- a/drivers/usb/core/urb.c +++ b/drivers/usb/core/urb.c @@ -468,6 +468,7 @@ int usb_unlink_urb(struct urb *urb) */ void usb_kill_urb(struct urb *urb) { + might_sleep(); if (!(urb && urb->dev && urb->dev->bus && urb->dev->bus->op)) return; spin_lock_irq(&urb->lock);