Commit 8da608ca authored by Greg Kroah-Hartman's avatar 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: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment