Skip to content

Commit ea3c9e1

Browse files
XidianGeneraldavem330
authored andcommitted
8139too: Add netif_napi_del in the driver
For linux-3.18.0 The driver lacks netif_napi_del in the normal path and error path to match the call of netif_napi_add in rtl8139_init_one. This patch fixes this problem. Signed-off-by: Jia-Ju Bai <baijiaju1990@163.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 6402a57 commit ea3c9e1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/net/ethernet/realtek/8139too.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1110,6 +1110,7 @@ static int rtl8139_init_one(struct pci_dev *pdev,
11101110
return 0;
11111111

11121112
err_out:
1113+
netif_napi_del(&tp->napi);
11131114
__rtl8139_cleanup_dev (dev);
11141115
pci_disable_device (pdev);
11151116
return i;
@@ -1124,6 +1125,7 @@ static void rtl8139_remove_one(struct pci_dev *pdev)
11241125
assert (dev != NULL);
11251126

11261127
cancel_delayed_work_sync(&tp->thread);
1128+
netif_napi_del(&tp->napi);
11271129

11281130
unregister_netdev (dev);
11291131

0 commit comments

Comments
 (0)