mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-04 01:49:36 +00:00
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:
parent
a6ea438b6d
commit
e73c7247b8
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue