From: Huazhong Tan Date: Thu, 28 May 2020 13:48:09 +0000 (+0800) Subject: net: hns3: add a missing mutex destroy in hclge_init_ad_dev() X-Git-Tag: v5.8-rc1~165^2~66^2~10 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=9516352150c0cb896b3de3997b1dfe43fb96d8a5;p=linux-block.git 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 Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c index 0e36f037f69c..7d5c304bd6b1 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c @@ -10108,6 +10108,7 @@ err_pci_uninit: pci_release_regions(pdev); pci_disable_device(pdev); out: + mutex_destroy(&hdev->vport_lock); return ret; }