projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
682d4c8
)
[PATCH] USB: add might_sleep() to usb_unlink_urb() to warn developers
author
Greg Kroah-Hartman
<gregkh@suse.de>
Mon, 23 Jan 2006 22:17:21 +0000
(17:17 -0500)
committer
Greg 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
patch
|
blob
|
blame
|
history
diff --git
a/drivers/usb/core/urb.c
b/drivers/usb/core/urb.c
index 081796726b951bf449b8b827b970cf7eec1b8571..dad4d8fd8180afc8ee779a04b380a7d364cdc9db 100644
(file)
--- 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);