mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-15 16:24:13 +08: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
@ -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 New Issue
Block a user