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>
This commit is contained in:
Oliver Neukum 2007-06-11 14:54:02 +02:00 committed by Greg Kroah-Hartman
parent a6ea438b6d
commit e73c7247b8

View 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);