Commit 95163521 authored by Huazhong Tan's avatar Huazhong Tan Committed by David S. Miller
Browse files

net: hns3: add a missing mutex destroy in hclge_init_ad_dev()



Add a mutex destroy call in hclge_init_ae_dev() when fails.

Signed-off-by: default avatarHuazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 2421ee24
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -10108,6 +10108,7 @@ err_pci_uninit:
	pci_release_regions(pdev);
	pci_disable_device(pdev);
out:
	mutex_destroy(&hdev->vport_lock);
	return ret;
}