Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp446369ybm; Thu, 28 May 2020 06:56:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwlvR/UJZbAKPo46Y3jI7NPWcN6dCvkMbywSeTfuO4Jyl+WPyROkxqp4KE5ZE0V1ip+83oz X-Received: by 2002:a17:906:1907:: with SMTP id a7mr3068253eje.251.1590674168350; Thu, 28 May 2020 06:56:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590674168; cv=none; d=google.com; s=arc-20160816; b=GTo4Yc8LA50ID0tv5/VGqptMKP1UB1rAJ4wm2q1JEqdEk9i+pUu+KrPD1PMcTH9RaP k9d4tStT5bZRidvuxb33TABgqntuQcVmAqcI8pkao2av34nSb6VSAx5UAnszYEmSHLIj KheMVzOtQzY8OBUdwDDBm7ECeTzoBT83OSD5KJxL/s2e24NXV8yBk+nf1/HdmRM1AMvN 1Gc7/m9wMRM++PQLpiAH2ksJx+wRAuhpbRFckevyLZPiJBgl7hd8X63KYyTa6b9M0zcY aIL8fN4lXkPD6YIjOf1J94lYGsgqLHfMDsv4JatF3bJuo7Fv37GbyTo2IwqHB4wJCjot ZmuQ== 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=wq0+jv2XMpsf30EaT/Ed1LqRzK9U2wmGnwjH29AxEQ4=; b=zRtp/Ds7sKR50ILMs6dO04E2Ug4c0o2ujjPyXVpKg8UK2S5AlUuPEJX0At4JUVyCSo AS18KuABiEOKhToGmB+vm4JZO4dTeKsIPiMnk8MG97BKYMse6W62DixOJbfVGt89ndDD ou54wEvnZBaxlmEyU6hhg0ZnVsOrYLZF5l1Fe9dPBhgP3m/bHe6+MFa75qs3rbtpvJ+J I3jnKquFdTp4CwSrNz9PJMSYL6T2NdoVq9Y4G8LlN7q3c86GcYE3TxSB33frPpYDgtu6 1fnUOT+fVrlY/eKVdHIdV5rsGK8WRGlbhT1f3Nk1CTXffEFHcRtmWn8EFSRZlFLKyBEN inLQ== 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 i12si948064edq.423.2020.05.28.06.55.45; Thu, 28 May 2020 06:56:08 -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 S2390697AbgE1Nvi (ORCPT + 99 others); Thu, 28 May 2020 09:51:38 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:5384 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2390559AbgE1NvG (ORCPT ); Thu, 28 May 2020 09:51:06 -0400 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 65A96F30783DA7F9615B; Thu, 28 May 2020 21:50:59 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.487.0; Thu, 28 May 2020 21:50:49 +0800 From: Huazhong Tan To: CC: , , , , , , Huazhong Tan Subject: [PATCH net-next 02/12] net: hns3: add a missing mutex destroy in hclge_init_ad_dev() Date: Thu, 28 May 2020 21:48:09 +0800 Message-ID: <1590673699-63819-3-git-send-email-tanhuazhong@huawei.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1590673699-63819-1-git-send-email-tanhuazhong@huawei.com> References: <1590673699-63819-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 0e36f03..7d5c304 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 @@ 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