From: Greg Kroah-Hartman Date: Tue, 21 Jun 2005 04:15:16 +0000 (-0700) Subject: [PATCH] USB: disable tasklet if rtl8150 device is removed while active. X-Git-Tag: v2.6.15-rc1~731^2~16^2~1^2~91 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8da608caa07d5c9745ec86bf7c25ad423352f9a4;p=linux-2.6 [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 --- diff --git a/drivers/usb/net/rtl8150.c b/drivers/usb/net/rtl8150.c index c3d4e3589e..787dd3591d 100644 --- a/drivers/usb/net/rtl8150.c +++ b/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);