projects
/
platform
/
upstream
/
kernel-adaptation-pc.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
|
history
diff --git
a/drivers/usb/core/urb.c
b/drivers/usb/core/urb.c
index
0817967
..
dad4d8f
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);