Ver código fonte

[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 <gregkh@suse.de>
Greg Kroah-Hartman 20 anos atrás
pai
commit
8da608caa0
1 arquivos alterados com 1 adições e 0 exclusões
  1. 1 0
      drivers/usb/net/rtl8150.c

+ 1 - 0
drivers/usb/net/rtl8150.c

@@ -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);