提交 8da608ca 编写于 作者: G Greg Kroah-Hartman

[PATCH] USB: disable tasklet if rtl8150 device is removed while active.

This fixes a oops seen in the wild.
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 c9c7746d
......@@ -909,6 +909,7 @@ static void rtl8150_disconnect(struct usb_interface *intf)
usb_set_intfdata(intf, NULL);
if (dev) {
set_bit(RTL8150_UNPLUG, &dev->flags);
tasklet_disable(&dev->tl);
unregister_netdev(dev->netdev);
unlink_all_urbs(dev);
free_all_urbs(dev);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册