[PATCH] USB: add might_sleep() to usb_unlink_urb() to warn developers
authorGreg Kroah-Hartman <gregkh@suse.de>
Mon, 23 Jan 2006 22:17:21 +0000 (17:17 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 1 Feb 2006 01:23:42 +0000 (17:23 -0800)
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/core/urb.c

index 081796726b951bf449b8b827b970cf7eec1b8571..dad4d8fd8180afc8ee779a04b380a7d364cdc9db 100644 (file)
@@ -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);