提交 4f6f6ba6 编写于 作者: J Jian Shen 提交者: Greg Kroah-Hartman

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

[ Upstream commit ac864c2346d087dd3739435af1b8d36be5f60c75 ]

When unload hns3 driver, we should clear the pci private data.
Signed-off-by: NJian Shen <shenjian15@huawei.com>
Signed-off-by: NPeng Li <lipeng321@huawei.com>
Signed-off-by: NHuazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
Signed-off-by: NSasha Levin <sashal@kernel.org>
上级 82060d93
...@@ -1620,6 +1620,7 @@ static void hns3_remove(struct pci_dev *pdev) ...@@ -1620,6 +1620,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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册