summaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2006-01-23 17:17:21 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2006-01-31 17:23:42 -0800
commite9aa795aaed0b861aaa5a8075748c9c34e2620ee (patch)
treea8e4ea428dec9436f33ace158ceb8c5a286d7b01 /drivers/usb
parent682d4c803f646d2ce09fde9ed7e99015598c3298 (diff)
downloadop-kernel-dev-e9aa795aaed0b861aaa5a8075748c9c34e2620ee.zip
op-kernel-dev-e9aa795aaed0b861aaa5a8075748c9c34e2620ee.tar.gz
[PATCH] USB: add might_sleep() to usb_unlink_urb() to warn developers
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/core/urb.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/core/urb.c b/drivers/usb/core/urb.c
index 0817967..dad4d8f 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);
OpenPOWER on IntegriCloud