Skip to content
Snippets Groups Projects
Commit c2e2a313 authored by huajun li's avatar huajun li Committed by David S. Miller
Browse files

rtl8150: rtl8150_disconnect(...) does not need tasklet_disable(...)


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: default avatarHuajun Li <huajun.li.lee@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d52fbfc9
No related branches found
No related tags found
No related merge requests found
...@@ -977,7 +977,6 @@ static void rtl8150_disconnect(struct usb_interface *intf) ...@@ -977,7 +977,6 @@ static void rtl8150_disconnect(struct usb_interface *intf)
usb_set_intfdata(intf, NULL); usb_set_intfdata(intf, NULL);
if (dev) { if (dev) {
set_bit(RTL8150_UNPLUG, &dev->flags); set_bit(RTL8150_UNPLUG, &dev->flags);
tasklet_disable(&dev->tl);
tasklet_kill(&dev->tl); tasklet_kill(&dev->tl);
unregister_netdev(dev->netdev); unregister_netdev(dev->netdev);
unlink_all_urbs(dev); unlink_all_urbs(dev);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment