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: Huazhong Tan <tanhuazhong@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
2421ee2477
commit
9516352150
|
@ -10108,6 +10108,7 @@ err_pci_uninit:
|
|||
pci_release_regions(pdev);
|
||||
pci_disable_device(pdev);
|
||||
out:
|
||||
mutex_destroy(&hdev->vport_lock);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue