Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp2947807rwo; Thu, 3 Aug 2023 18:41:07 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF4XHQpEwk8O6USbJIeV9TN3080HsZvrNukWV3xfXe7op/avBAyP+5Y1b4cy3i36+OgST69 X-Received: by 2002:a17:907:2e19:b0:99c:6c29:7871 with SMTP id ig25-20020a1709072e1900b0099c6c297871mr245194ejc.65.1691113267451; Thu, 03 Aug 2023 18:41:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691113267; cv=none; d=google.com; s=arc-20160816; b=lgZXW0AeQDKJcYHTdQxLsihYg2/OLmbAPEhd+4OWJ3OTUGCDyB3Zz3ycXjEtMh6i69 CWOY4XtgBLnFhyR+Kl21x2YXlhcvLpYKw1o/lQVULzk/5fIBwI6ugbXGNlYLNwRPGR+e ZgmBrn6Hdgtm+g6oBHK6ijGfTzl1a8J1nNRLRHrFMp/3FRSuIWCgHJR9zSlfn0+6JmAT Ro/as3yZkyDOrbUf+J77i6jcYrdTMas3ARUwTYi5j6d90TDFpWBuOQ+vIgIZ+ujZzQj1 yQAxqmc1TL4C9m2S/jm+bd9Ffr09/i4yJbPl/U1OyQp3FVI1KdtGAifwOXbSFTimlo5g 7y6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=8WkgldsjNJj0OWIKl0mYl+mIaTFrQm5ZlDGZyXiOezY=; fh=3H3oLXANh5v13tjHxrBYuXblpWbB01kHKe+fQJ1oJi8=; b=zOSMf1Cr1+MGNtYevCDx0OvtFDJgyI6kLG/NCya0gVxnYAdc+OndLqw8q15UAx4d5q z8d07b7CjAwf2Kh3u/hLx/ptU+uHl08D26NOuR+WMNTxlsoA6tCaEHn/4sM+/XkBH1Hs Ia9YAecWPzNPtgbyI4tAEkJfhPMt0SjHKQR/dBQMEXemdrX48JT3/rJTV799t2F0hTSY hLGMa5e6G9bpQPp0IL9TJipfAMKdKVcOJTcWVS41Ez4/iJQt1LLympwu5EdMAwj9qUGW J8e9Xa/3ma+IEXzwtX9tWkllmntS6mA2tz1T4BGxyeFQoytnKNsn7Rms4rOypXmo/6C2 Hadw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=hisilicon.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z21-20020a17090655d500b009924806cd0asi808398ejp.295.2023.08.03.18.40.43; Thu, 03 Aug 2023 18:41:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=hisilicon.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232381AbjHDBaH (ORCPT + 99 others); Thu, 3 Aug 2023 21:30:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50310 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231942AbjHDB3y (ORCPT ); Thu, 3 Aug 2023 21:29:54 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 44B574482; Thu, 3 Aug 2023 18:29:53 -0700 (PDT) Received: from kwepemi500006.china.huawei.com (unknown [172.30.72.55]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4RH7Qk5nMXzrS0X; Fri, 4 Aug 2023 09:28:46 +0800 (CST) Received: from localhost.localdomain (10.67.165.2) by kwepemi500006.china.huawei.com (7.221.188.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Fri, 4 Aug 2023 09:29:51 +0800 From: Junxian Huang To: , CC: , , , Subject: [PATCH for-rc 3/4] RDMA/hns: Fix inaccurate error label name in init instance Date: Fri, 4 Aug 2023 09:27:10 +0800 Message-ID: <20230804012711.808069-4-huangjunxian6@hisilicon.com> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20230804012711.808069-1-huangjunxian6@hisilicon.com> References: <20230804012711.808069-1-huangjunxian6@hisilicon.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.67.165.2] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To kwepemi500006.china.huawei.com (7.221.188.68) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch fixes inaccurate error label name in init instance. Fixes: 70f92521584f ("RDMA/hns: Use the reserved loopback QPs to free MR before destroying MPT") Signed-off-by: Junxian Huang --- drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/infiniband/hw/hns/hns_roce_hw_v2.c b/drivers/infiniband/hw/hns/hns_roce_hw_v2.c index f95551b6d407..1d998298e28f 100644 --- a/drivers/infiniband/hw/hns/hns_roce_hw_v2.c +++ b/drivers/infiniband/hw/hns/hns_roce_hw_v2.c @@ -6723,14 +6723,14 @@ static int __hns_roce_hw_v2_init_instance(struct hnae3_handle *handle) ret = hns_roce_init(hr_dev); if (ret) { dev_err(hr_dev->dev, "RoCE Engine init failed!\n"); - goto error_failed_cfg; + goto error_failed_roce_init; } if (hr_dev->pci_dev->revision == PCI_REVISION_ID_HIP08) { ret = free_mr_init(hr_dev); if (ret) { dev_err(hr_dev->dev, "failed to init free mr!\n"); - goto error_failed_roce_init; + goto error_failed_free_mr_init; } } @@ -6738,10 +6738,10 @@ static int __hns_roce_hw_v2_init_instance(struct hnae3_handle *handle) return 0; -error_failed_roce_init: +error_failed_free_mr_init: hns_roce_exit(hr_dev); -error_failed_cfg: +error_failed_roce_init: kfree(hr_dev->priv); error_failed_kzalloc: -- 2.30.0