Commit ac864c23 authored by Jian Shen's avatar Jian Shen Committed by David S. Miller

net: hns3: clear pci private data when unload hns3 driver

When unload hns3 driver, we should clear the pci private data.
Signed-off-by: default avatarJian Shen <shenjian15@huawei.com>
Signed-off-by: default avatarPeng Li <lipeng321@huawei.com>
Signed-off-by: default avatarHuazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 217e288c
...@@ -1781,6 +1781,7 @@ static void hns3_remove(struct pci_dev *pdev) ...@@ -1781,6 +1781,7 @@ static void hns3_remove(struct pci_dev *pdev)
hns3_disable_sriov(pdev); hns3_disable_sriov(pdev);
hnae3_unregister_ae_dev(ae_dev); hnae3_unregister_ae_dev(ae_dev);
pci_set_drvdata(pdev, NULL);
} }
/** /**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment