]> git.baikalelectronics.ru Git - kernel.git/commitdiff
net: hns3: add a missing mutex destroy in hclge_init_ad_dev()
authorHuazhong Tan <tanhuazhong@huawei.com>
Thu, 28 May 2020 13:48:09 +0000 (21:48 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 May 2020 23:39:03 +0000 (16:39 -0700)
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>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c

index 0e36f037f69c57bf275b526e967280dc7044ca57..7d5c304bd6b135e03f333190032234f3d5e4b083 100644 (file)
@@ -10108,6 +10108,7 @@ err_pci_uninit:
        pci_release_regions(pdev);
        pci_disable_device(pdev);
 out:
+       mutex_destroy(&hdev->vport_lock);
        return ret;
 }