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:
committed by
Greg Kroah-Hartman
parent
a6ea438b6d
commit
e73c7247b8
@@ -420,6 +420,8 @@ static void skel_disconnect(struct usb_interface *interface)
|
|||||||
dev->interface = NULL;
|
dev->interface = NULL;
|
||||||
mutex_unlock(&dev->io_mutex);
|
mutex_unlock(&dev->io_mutex);
|
||||||
|
|
||||||
|
usb_kill_anchored_urbs(&dev->submitted);
|
||||||
|
|
||||||
/* decrement our usage count */
|
/* decrement our usage count */
|
||||||
kref_put(&dev->kref, skel_delete);
|
kref_put(&dev->kref, skel_delete);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user