dect
/
linux-2.6
Archived
13
0
Fork 0

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

Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
Greg Kroah-Hartman 2006-01-23 17:17:21 -05:00
parent 682d4c803f
commit e9aa795aae
1 changed files with 1 additions and 0 deletions

View 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);