forked from luck/tmp_suning_uos_patched
[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:
parent
682d4c803f
commit
e9aa795aae
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user