Commit e9aa795a authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

[PATCH] USB: add might_sleep() to usb_unlink_urb() to warn developers

Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 682d4c80
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment