]> err.no Git - linux-2.6/commitdiff
USB: usb-skeleton: use anchors in disconnect handling
authorOliver Neukum <oneukum@suse.de>
Mon, 11 Jun 2007 12:54:02 +0000 (14:54 +0200)
committerGreg 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

index a31fcfd5eda772c13d51dbf968b51b4cd37ea755..1b1e669dff9a75dfb915448153aeaf0710fe788c 100644 (file)
@@ -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);