Skip to content

Commit

Permalink
[PATCH] USB: disable tasklet if rtl8150 device is removed while active.
Browse files Browse the repository at this point in the history
This fixes a oops seen in the wild.

Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Greg Kroah-Hartman committed Oct 28, 2005
1 parent c9c7746 commit 8da608c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/usb/net/rtl8150.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 8da608c

Please sign in to comment.