projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
217e288
)
net: hns3: clear pci private data when unload hns3 driver
author
Jian Shen
<
[email protected]
>
Sat, 26 Jan 2019 16:49:11 +0000
(
00:49
+0800)
committer
David S. Miller
<
[email protected]
>
Sat, 26 Jan 2019 17:33:30 +0000
(09:33 -0800)
When unload hns3 driver, we should clear the pci private data.
Signed-off-by: Jian Shen <
[email protected]
>
Signed-off-by: Peng Li <
[email protected]
>
Signed-off-by: Huazhong Tan <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
b/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
index 5ef3bdc7c8081b338099f6619383bc283cc9e857..cec09235b1ef1648e086e6153d0b2ea0a3a7d895 100644
(file)
--- a/
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
+++ b/
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
@@
-1781,6
+1781,7
@@
static void hns3_remove(struct pci_dev *pdev)
hns3_disable_sriov(pdev);
hnae3_unregister_ae_dev(ae_dev);
+ pci_set_drvdata(pdev, NULL);
}
/**