Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp399442ybm; Thu, 28 May 2020 05:49:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxiZiYF97TpWn8zP3g01Y2fMm0+YgG3eQoD/qLG3JqDYl1jiJax9yUKZygNnoObdKChU78k X-Received: by 2002:a17:906:c112:: with SMTP id do18mr2645522ejc.231.1590670182337; Thu, 28 May 2020 05:49:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590670182; cv=none; d=google.com; s=arc-20160816; b=cITOa3KlOOmByCm4hYTv4hKLxCXyfmUqNhh6Q6hDSx/Jik8/fhWjkHnfRowewqGL9Z ZkRWjl8yJX5cTX+6D6rgHcfAbJZm0TWDNFGfun8lZLSyom6gpA/g/+spE1ud0GqIrnqo YrqgCaOSiG6yZkMfUBrUTEa/p/T/4YVarj8a2j3rv0RKU60CDckl7qcfYQXETtTxYH2k z3zTklEeEGCXsxVr39elcO7qcLVPNtf0cSnDopJC32PUSdoLh0HCuw7SvIaySePBcaxj S4rJZraGmMjBbZHgg5y7PejOqvhrJkVgS4i+q5oGAoevTWqI/YS0/WW0VT/D9Hcc/EDD ZVQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=0b3yz3krj6BfCaf736YKPW2oOlhdMu6QaxR5XWFOh/E=; b=znn14YGjhZXEY4YZvJxflxCUXkdMrd3DoeMRrycw+GgQSWrhTVIJqSy1rkqNW4MWGD VIOkopX3udaI2+5nOFc5GcQYfl9Fko98xE/lAYKC2BuIEzX/7AgICUt3nR0Spn+BpQNb m3hph8drkek1SRO3tqjWQWybq7l0e5xihlTHJ5xjjQyMrUVeNPLdevopR4GVcfeRBTUv Jf5swyJN5mnFMR2pmxHarSK+in+Bhyc5U0TehmxEFwX151BiXXVRrRAAznzBtED1i9/f l2kze/Cmu5DluczCNqTdyR5mayl+1feZ75G/0CwHzEHwbUWHNPWuYmlQJA8pfpG2cA/G 91AA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q9si3461118edb.473.2020.05.28.05.49.19; Thu, 28 May 2020 05:49:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389930AbgE1MrJ (ORCPT + 99 others); Thu, 28 May 2020 08:47:09 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:5366 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2389867AbgE1Mqs (ORCPT ); Thu, 28 May 2020 08:46:48 -0400 Received: from DGGEMS414-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 4772AE3E6C0E7E932B2E; Thu, 28 May 2020 20:46:43 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by DGGEMS414-HUB.china.huawei.com (10.3.19.214) with Microsoft SMTP Server id 14.3.487.0; Thu, 28 May 2020 20:46:35 +0800 From: Huazhong Tan To: CC: , , , , , , Huazhong Tan Subject: [PATCH net-next 01/11] net: hns3: add a missing mutex destroy in hclge_init_ad_dev() Date: Thu, 28 May 2020 20:45:02 +0800 Message-ID: <1590669912-21867-2-git-send-email-tanhuazhong@huawei.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1590669912-21867-1-git-send-email-tanhuazhong@huawei.com> References: <1590669912-21867-1-git-send-email-tanhuazhong@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.69.192.56] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add a mutex destroy call in hclge_init_ae_dev() when fails. Signed-off-by: Huazhong Tan --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c index 7c9f2ba..ff8ad4b 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c @@ -10110,6 +10110,7 @@ static int hclge_init_ae_dev(struct hnae3_ae_dev *ae_dev) pci_release_regions(pdev); pci_disable_device(pdev); out: + mutex_destroy(&hdev->vport_lock); return ret; } -- 2.7.4