net: hns3: clear pci private data when unload hns3 driver
When unload hns3 driver, we should clear the pci private data. Signed-off-by: Jian Shen <shenjian15@huawei.com> Signed-off-by: Peng Li <lipeng321@huawei.com> Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
217e288c97
commit
ac864c2346
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue