diff options
author | Oliver Neukum <oneukum@suse.de> | 2007-06-11 14:54:02 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2007-07-12 16:34:37 -0700 |
commit | e73c7247b8e10a74cbf6b7430585e02c7cc05444 (patch) | |
tree | ffa5f1b29a6fe97887c778555762b18b7ba113b5 /drivers/usb/usb-skeleton.c | |
parent | a6ea438b6d38689b7f876093bcba4505fe1995d1 (diff) | |
download | op-kernel-dev-e73c7247b8e10a74cbf6b7430585e02c7cc05444.zip op-kernel-dev-e73c7247b8e10a74cbf6b7430585e02c7cc05444.tar.gz |
USB: usb-skeleton: use anchors in disconnect handling
use anchors in disconnect handling
Signed-off-by: Oliver Neukum <oneukum@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/usb-skeleton.c')
-rw-r--r-- | drivers/usb/usb-skeleton.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/usb-skeleton.c b/drivers/usb/usb-skeleton.c index a31fcfd5..1b1e669 100644 --- 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); |