提交 e73c7247 编写于 作者: O Oliver Neukum 提交者: Greg Kroah-Hartman

USB: usb-skeleton: use anchors in disconnect handling

use anchors in disconnect handling
Signed-off-by: NOliver Neukum <oneukum@suse.de>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 a6ea438b
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册