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 a31fcfd..1b1e669 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);