Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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);
}

/**