|
@@ -3962,7 +3962,8 @@ static int rtl8152_close(struct net_device *netdev)
|
|
#ifdef CONFIG_PM_SLEEP
|
|
#ifdef CONFIG_PM_SLEEP
|
|
unregister_pm_notifier(&tp->pm_notifier);
|
|
unregister_pm_notifier(&tp->pm_notifier);
|
|
#endif
|
|
#endif
|
|
- napi_disable(&tp->napi);
|
|
|
|
|
|
+ if (!test_bit(RTL8152_UNPLUG, &tp->flags))
|
|
|
|
+ napi_disable(&tp->napi);
|
|
clear_bit(WORK_ENABLE, &tp->flags);
|
|
clear_bit(WORK_ENABLE, &tp->flags);
|
|
usb_kill_urb(tp->intr_urb);
|
|
usb_kill_urb(tp->intr_urb);
|
|
cancel_delayed_work_sync(&tp->schedule);
|
|
cancel_delayed_work_sync(&tp->schedule);
|