Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp494286pxf; Thu, 8 Apr 2021 07:18:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxen8lax1PsTtrHHK7LO8pU0pjA+8+WzZq2+fRJPXpKAxwtzgVKMftlRoitUdajb0iiT8Nz X-Received: by 2002:a62:168b:0:b029:20d:69a5:189 with SMTP id 133-20020a62168b0000b029020d69a50189mr7706000pfw.57.1617891511897; Thu, 08 Apr 2021 07:18:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1617891511; cv=pass; d=google.com; s=arc-20160816; b=JHjEEDl6ImWusULH8jPUJbojlo/1spFRS5JLSfcdVTjfzR9k7vSkmgyF/wM3ck5xBz WR2I7x9rWU0FaNRZp+lDW9u/nGkh9yDEc59kpylKQHkVyc1heQoDpaiJY3eOVZIjkos1 rvBR415R/aTfrj4svj1IWA9ISEwQFoJEIzRMnN76cxPW/57/bcRSGP+WD/hO/xRuBlf/ Mm6HuVkeGLf1+uxUsiEr8Wv1Jri/Rau+bMPSijfFXrwB+QigZB3WqMPiNDZ6FMxIxdU6 Idc0gNHnLiKcHlVAALaradoXd2k6NRdIrdhpopTOcmcndsjasE6Mab9kSHeerri5obPq jYaw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=cWW6XiuBunEq2GOFuyWmq2Hl/6hgXGEfPPXyFXPM3aQ=; b=BF3uAvcrFbf9SrS79uVkkeraMNT3iUfolAirbrcfv4H3P+Y9NmIY/W6YRXC6LYhE1v udf0wzvw8gM++kGRHSpqUS1PNQr1Itypp0mXne5iG0h5zWg74E4EeSuaY2BrXjoAmjaN ptyYRK9aJxcvdHmoyguTypHBKRzV2S0FQzRio5N84XVE37VUb/ACD5Wt8lGVeNxuZ65O 1y4wxQz/q9uEXnRAhcWvUNmRa1HK7Dl0kNHEgPGgg6s8L/HG3JBdWYNoTHfbY/UehJ6L 6iRQUWxCOBYo/06rJ7cbyf/B6jLC+Fre9tL1psUDLrIbuUoEDamOo/Xh3ZvmELRbxA+6 YNiQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@marvell.onmicrosoft.com header.s=selector1-marvell-onmicrosoft-com header.b=Uy8SzrzZ; arc=pass (i=1 spf=pass spfdomain=marvell.com dkim=pass dkdomain=marvell.com dmarc=pass fromdomain=marvell.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; dmarc=fail (p=NONE sp=REJECT dis=NONE) header.from=marvell.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id kx14si4582482pjb.173.2021.04.08.07.18.18; Thu, 08 Apr 2021 07:18:31 -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; dkim=pass header.i=@marvell.onmicrosoft.com header.s=selector1-marvell-onmicrosoft-com header.b=Uy8SzrzZ; arc=pass (i=1 spf=pass spfdomain=marvell.com dkim=pass dkdomain=marvell.com dmarc=pass fromdomain=marvell.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; dmarc=fail (p=NONE sp=REJECT dis=NONE) header.from=marvell.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231977AbhDHOQ6 (ORCPT + 99 others); Thu, 8 Apr 2021 10:16:58 -0400 Received: from mx0a-0016f401.pphosted.com ([67.231.148.174]:9923 "EHLO mx0b-0016f401.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S231921AbhDHOQk (ORCPT ); Thu, 8 Apr 2021 10:16:40 -0400 Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 138E6rpo031852; Thu, 8 Apr 2021 07:16:19 -0700 Received: from nam02-dm3-obe.outbound.protection.outlook.com (mail-dm3nam07lp2043.outbound.protection.outlook.com [104.47.56.43]) by mx0a-0016f401.pphosted.com with ESMTP id 37shqxkdyb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 08 Apr 2021 07:16:19 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=X/ajOMmcf4oq3wCYKxxmsyLDT9MWjjpPPx98zVViZycpDd3FPrMzIhV/qUtxtno8PUl+IgJkUOj0z5isG19AVUrYI3GKyC4+Qh3wVtq3SU/pEw21hNlIJwkIbIdgUTS4l7pSuzmlX/eCz6Dn8OocuMKMfFJ9/5UT7YaNref0zmWWhHCzV6vB0WSkJ3TY28lzkFqJx+Gw15ID0zv0Mch4JPf58VXruS4FNUKjmGLMOHr8bu+XjQVqpIXWXsVsn8xUPDbexMDFXq0l90CGNz4ewum0+3IeljCcwibsHQx9A2vbJqi1LSpXftmFbedShkruE9NrsKxjmHxN2JZiVP415A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=cWW6XiuBunEq2GOFuyWmq2Hl/6hgXGEfPPXyFXPM3aQ=; b=J9mILSoxSK9zsTSz3KBiMbRahbrm35xAQH86DWNI5abR8EAo+C8+GTg3om5kRRrBAePlLRRWu6BSfRm09HHAnJ2RwRBnxVPqYM0/2HM9kq5t0BH7WQmeWh5d8iejEjipyAQn/LNmzE6+v0wED7upe2zk/RGpLbW49L/ANx/LtTKqIDOKDCWzXcl6gkC04TGOPLddwAJ6fPsxjCj7QOd0MKqP5yXN9Es3aUL2WKnLRIIQ67QFpB7YOfY9wfkpL1mfRLovJ/6+HZdbU3IetDvlcoxvMmEe4147XgkeM+4cMnhLWlve6M7robfVfCfWq3zTRNjHa0tW1wnMzHQSj3QjXw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=marvell.com; dmarc=pass action=none header.from=marvell.com; dkim=pass header.d=marvell.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector1-marvell-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=cWW6XiuBunEq2GOFuyWmq2Hl/6hgXGEfPPXyFXPM3aQ=; b=Uy8SzrzZbK2lX64oDHIif/dbsWLySU9qLU6Xi/r+tvv2JRyN2IvBdlXQJKvbiADDzT3duSZyjiCLFIM9s2GcYsGuWUKnV9gu2jHmg+dVjGv8jBi4qVVsxbP3XgJLvLiFBVBB68aL37csgf/Sox5loZXUIwZYN8CEB0lJduNu8Ys= Received: from MN2PR18MB3182.namprd18.prod.outlook.com (2603:10b6:208:163::15) by MN2PR18MB3493.namprd18.prod.outlook.com (2603:10b6:208:267::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4020.18; Thu, 8 Apr 2021 14:16:17 +0000 Received: from MN2PR18MB3182.namprd18.prod.outlook.com ([fe80::44d9:1b4a:df4a:7c5f]) by MN2PR18MB3182.namprd18.prod.outlook.com ([fe80::44d9:1b4a:df4a:7c5f%3]) with mapi id 15.20.4020.018; Thu, 8 Apr 2021 14:16:17 +0000 From: Michal Kalderon To: Wang Wensheng , Ariel Elior , "dledford@redhat.com" , "jgg@ziepe.ca" , "linux-rdma@vger.kernel.org" , "linux-kernel@vger.kernel.org" CC: "rui.xiang@huawei.com" Subject: RE: [PATCH -next] RDMA/qedr: Fix error return code in qedr_iw_connect() Thread-Topic: [PATCH -next] RDMA/qedr: Fix error return code in qedr_iw_connect() Thread-Index: AQHXLGspSF2afC7wvUK5itgV43n7+Kqqqnxg Date: Thu, 8 Apr 2021 14:16:16 +0000 Message-ID: References: <20210408113135.92165-1-wangwensheng4@huawei.com> In-Reply-To: <20210408113135.92165-1-wangwensheng4@huawei.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: huawei.com; dkim=none (message not signed) header.d=none;huawei.com; dmarc=none action=none header.from=marvell.com; x-originating-ip: [93.173.219.229] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 19b42242-401e-480e-f4db-08d8fa98dfde x-ms-traffictypediagnostic: MN2PR18MB3493: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:7219; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: SLofuaJETFTnSL5b09YEJq9A/2fAfhc92KrAC4g/b59AEPW86MMFKQNJhvWmUcsHxaZyfCAufYdBVFhitw5jygJLfOnO/KDpzdvZ88/5gzFyAFqIg/1YaJADytDG7gDtDk1wzWFRXU2+F6r3Oddb478tu2PIUw+0nka9tyV3j0o8+1bw+3I9UYumby+LLy5Vo2x7paZurjZ7DF+MmCuEoqJ2jOj9ioErELYGz0leibx6ou0o8uXVzzjkJH49CvYv1MzgJORlP7b41l11C0rZCL+amvJr8g1gZsE2GMeBtthY9DDfp5tkBBWU4uh2GpSYmMshnib5H+UhvW8OShV/1Geja7M0GyF+vuzybfxTE6qNazsZGc+QV/LMj34XpxQO+KeuCBcGg1MM06uWYu6eDeMU4zCIBORDWshehxJXDhw8W/tnCmGS266gqyRvqClpHncfdHtiqpKjW8fRyEt2FDS75bqORu3RW5yjP5m2mKcjhjWTM/QqGaV2rugM9xIh7d7b/X6pS9+0Z9pRSsPyys3wyQYOidbq/nLnXKKvabJ49MhKd1URrcNtpIJp1+VrRfZE+n4/OPZYeHIDLjFa65CpOqLp1JgE7zWd2DU4Z+gtNBFhw+bmm4i7+yNorMR5lCKpnwA6py45hn9DCezcTmL0OOtfZx9SCVxNlNQjceA= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MN2PR18MB3182.namprd18.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(396003)(39860400002)(376002)(136003)(366004)(346002)(478600001)(186003)(7696005)(86362001)(66946007)(9686003)(64756008)(66476007)(76116006)(66446008)(38100700001)(2906002)(71200400001)(66556008)(83380400001)(52536014)(8936002)(55016002)(316002)(33656002)(6506007)(8676002)(26005)(4326008)(110136005)(5660300002);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata: =?iso-8859-1?Q?V++7Y+H5LXySZcxrAqWXup/t+8W58AZ+Ad7/wS49iI4sJ7Q/auBnlAdiV4?= =?iso-8859-1?Q?Ly0HMQeietccL3VVrAJdcVoIS88gIgu+VLCsTMRwpVl6d5lmb9wYAiw/T6?= =?iso-8859-1?Q?uwaL9S/xf8DYdmL+8GwlueFO3UUt6Niwugxro4JjodeW4E5cMwBkWnKndF?= =?iso-8859-1?Q?aOgTnGJoHorpGZ4qex2s+zbeZyu3qIU5NjqhfrksVGW48Rq2zXZRnEKnsx?= =?iso-8859-1?Q?LkC9th+E4qrPcc9oWPIn+1FFc2SJM6dKcaYYQqn6PhVuVPlVeA9iFf8xr8?= =?iso-8859-1?Q?9GA0rbYzQErmRRVh/rYdbtM2osnN5uvFV8S8VU96k28IL5wf+5vPKO2dby?= =?iso-8859-1?Q?FfwkpdlopTycPh3WAphn3oFX5luTqeaLIpp82lV5g4uLEdxtXXHZjwBbAo?= =?iso-8859-1?Q?axWT87DNhNX3Dw6Fi+3ihREIpVwa7VoZID7zqz4BSJIjf9WmIeHWIiq/JE?= =?iso-8859-1?Q?lH4ZWCDNQk70B7wEyNmpbGwGfEyElooEE/fQyrqMi6e4ZdoKXrVSaqqKBX?= =?iso-8859-1?Q?IgZB76Dhk4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transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: marvell.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MN2PR18MB3182.namprd18.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 19b42242-401e-480e-f4db-08d8fa98dfde X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Apr 2021 14:16:16.9299 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: fVScd9zFCm/iYTRXhHe3RVv3s6QLi+6GTsZm3wc0TT9sm7wO1SRaWrKGazEAI0DvcAPGFBJfcDGcOQvdm66ihg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR18MB3493 X-Proofpoint-ORIG-GUID: tRHJDb0gvHdJ3sUJSlV-9EjoAPMi8hkc X-Proofpoint-GUID: tRHJDb0gvHdJ3sUJSlV-9EjoAPMi8hkc X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391,18.0.761 definitions=2021-04-08_03:2021-04-08,2021-04-08 signatures=0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > From: Wang Wensheng > Sent: Thursday, April 8, 2021 2:32 PM >=20 > Fix to return a negative error code from the error handling case instead = of 0, > as done elsewhere in this function. >=20 > Fixes: 82af6d19d8d9 ("RDMA/qedr: Fix synchronization methods and > memory leaks in qedr") > Reported-by: Hulk Robot > Signed-off-by: Wang Wensheng > --- > drivers/infiniband/hw/qedr/qedr_iw_cm.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) >=20 > diff --git a/drivers/infiniband/hw/qedr/qedr_iw_cm.c > b/drivers/infiniband/hw/qedr/qedr_iw_cm.c > index c4bc587..1715fbe 100644 > --- a/drivers/infiniband/hw/qedr/qedr_iw_cm.c > +++ b/drivers/infiniband/hw/qedr/qedr_iw_cm.c > @@ -636,8 +636,10 @@ int qedr_iw_connect(struct iw_cm_id *cm_id, struct > iw_cm_conn_param *conn_param) > memcpy(in_params.local_mac_addr, dev->ndev->dev_addr, > ETH_ALEN); >=20 > if (test_and_set_bit(QEDR_IWARP_CM_WAIT_FOR_CONNECT, > - &qp->iwarp_cm_flags)) > + &qp->iwarp_cm_flags)) { > + rc =3D -ENODEV; > goto err; /* QP already being destroyed */ > + } >=20 > rc =3D dev->ops->iwarp_connect(dev->rdma_ctx, &in_params, > &out_params); > if (rc) { > -- > 2.9.4 Thanks,=A0 Acked-by: Michal Kalderon=A0