]> git.karo-electronics.de Git - linux-beck.git/commitdiff
rtl8150: rtl8150_disconnect(...) does not need tasklet_disable(...)
authorhuajun li <huajun.li.lee@gmail.com>
Sun, 7 Aug 2011 03:03:31 +0000 (03:03 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Aug 2011 05:52:32 +0000 (22:52 -0700)
Executing cmd 'rmmod rtl8150' does not return(if your device connects
to host), the root cause is tasklet_disable() causes tasklet_kill()
block, remove it from rtl8150_disconnect().

Signed-off-by: Huajun Li <huajun.li.lee@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/rtl8150.c

index 041fb7d43c4f7d077c8175c5d395901a1d92061c..ef3b236b51457d49bbd59ddef6a4dbd648c24dd1 100644 (file)
@@ -977,7 +977,6 @@ 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);
                tasklet_kill(&dev->tl);
                unregister_netdev(dev->netdev);
                unlink_all_urbs(dev);