projects
/
kernel
/
kernel-generic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a6ea438
)
USB: usb-skeleton: use anchors in disconnect handling
author
Oliver Neukum
<oneukum@suse.de>
Mon, 11 Jun 2007 12:54:02 +0000
(14:54 +0200)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Thu, 12 Jul 2007 23:34:37 +0000
(16:34 -0700)
use anchors in disconnect handling
Signed-off-by: Oliver Neukum <oneukum@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/usb-skeleton.c
patch
|
blob
|
history
diff --git
a/drivers/usb/usb-skeleton.c
b/drivers/usb/usb-skeleton.c
index
a31fcfd
..
1b1e669
100644
(file)
--- a/
drivers/usb/usb-skeleton.c
+++ b/
drivers/usb/usb-skeleton.c
@@
-420,6
+420,8
@@
static void skel_disconnect(struct usb_interface *interface)
dev->interface = NULL;
mutex_unlock(&dev->io_mutex);
+ usb_kill_anchored_urbs(&dev->submitted);
+
/* decrement our usage count */
kref_put(&dev->kref, skel_delete);