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:
Родитель
a6ea438b6d
Коммит
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);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче