summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorGreg Kroah-Hartman2005-06-21 06:15:16 +0200
committerGreg Kroah-Hartman2005-10-29 01:47:37 +0200
commit8da608caa07d5c9745ec86bf7c25ad423352f9a4 (patch)
treecc8f60e24846a4fbc5c9dd5afb8fd676a6adc73f /drivers
parent[PATCH] USB: ftdi: Artemis and ATIK based USB astronomical CCD cameras (diff)
downloadkernel-qcow2-linux-8da608caa07d5c9745ec86bf7c25ad423352f9a4.tar.gz
kernel-qcow2-linux-8da608caa07d5c9745ec86bf7c25ad423352f9a4.tar.xz
kernel-qcow2-linux-8da608caa07d5c9745ec86bf7c25ad423352f9a4.zip
[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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/usb/net/rtl8150.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/net/rtl8150.c b/drivers/usb/net/rtl8150.c
index c3d4e3589e30..787dd3591d6a 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);