Skip to content

Commit 8da608c

Browse files
committed
[PATCH] USB: disable tasklet if rtl8150 device is removed while active.
This fixes a oops seen in the wild. Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent c9c7746 commit 8da608c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/usb/net/rtl8150.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -909,6 +909,7 @@ static void rtl8150_disconnect(struct usb_interface *intf)
909909
usb_set_intfdata(intf, NULL);
910910
if (dev) {
911911
set_bit(RTL8150_UNPLUG, &dev->flags);
912+
tasklet_disable(&dev->tl);
912913
unregister_netdev(dev->netdev);
913914
unlink_all_urbs(dev);
914915
free_all_urbs(dev);

0 commit comments

Comments
 (0)