Received: by 10.192.165.148 with SMTP id m20csp727664imm; Wed, 25 Apr 2018 06:50:32 -0700 (PDT) X-Google-Smtp-Source: AIpwx48JbdAUQFK1ya0D6w6i/QwfankBlRrkmG4NGytY870rboRnsLmb4zFanTkYzh3vzCDK5AZz X-Received: by 10.98.245.139 with SMTP id b11mr27872497pfm.113.1524664232262; Wed, 25 Apr 2018 06:50:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524664232; cv=none; d=google.com; s=arc-20160816; b=um1d32EgRrumt/rZ4IxT0IFm5Y2b0KfM0u72kRUc467hdUEcxvYx+CSv6N7CFZHD5c nTynTombJgh+SCx+wYQ0QUXTdB4H20hTgI2z7iyMcCM8s+knNi+jNKK1TjCeMUNvz/0C GfGNB1V3erQZgogzvRyuw322Ys1M0lQshxx2Dn6twr/BeCbrOlAGIV8Z3AKjQwp5HuWh 0EFnBR36+xd5IGLKwWyi8IAwd6ZfhVTdES0gxhD2M82NVjOM8cyVZ8643Bd8h6RgaVsw sEawGEw8DhU7Snl9SooMmjhWnHm/f+E+PaWkIdN1hM9XZagN4d4q8Jb970IJiF3DJ3dx aFOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature:arc-authentication-results; bh=HabFuDO4uI7/PNc8hYV98XB5xzxh3/uthIrn010dtFY=; b=YWsaPQ2QaBSqHuU6rx6uAWrR37wJcwZSaeGk6GADcjMWjWww0/WJTWSV/p07LaP63A winh30S+AUTmefdqchNVhI+vZsFdcAbjJeAvvctdtAUzMAsubYSf83uIsPXoLVfr+fcQ qq97CyylZPkPiDiTMr3kXxge1+4WP3R74sgLieYouPJCA5q+QLmf+Rw16l9gy896a5md EJrVDDuBeqlDV0EKz3v64QZLvGISERYZVguYt4ok4qJeTszOGGl3K64a13ayXdGU5kXy 8PPpJb5IdzP0vwTNHLJICg34eBHRZTk8sAStAiOEMVUbTZkCNrqcI9CiSJdcYWGBH1I3 9V8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=nYibXPS6; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r74si13202640pfl.260.2018.04.25.06.50.18; Wed, 25 Apr 2018 06:50:32 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=nYibXPS6; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754391AbeDYNtB (ORCPT + 99 others); Wed, 25 Apr 2018 09:49:01 -0400 Received: from userp2120.oracle.com ([156.151.31.85]:35072 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753509AbeDYNs7 (ORCPT ); Wed, 25 Apr 2018 09:48:59 -0400 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w3PDjqwn008634; Wed, 25 Apr 2018 13:48:57 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=content-type : mime-version : subject : from : in-reply-to : date : cc : content-transfer-encoding : message-id : references : to; s=corp-2017-10-26; bh=HabFuDO4uI7/PNc8hYV98XB5xzxh3/uthIrn010dtFY=; b=nYibXPS6KL42fog0kmJWHa4rP3cAwsYFWFumujOMTN5WLfGaTKDlDm6oIn9oFer2eYsi pqLI8FiPFj5/bRHGTzY6cHfqNMejSNFmgtYlMAcv091lmsjLkvroSeLmHPhF1xEKhkd3 NALbDhKOdfzEt8gabrgX0hIPUvXQvqJIYkk4hqKpW+u0zbfQLLHzYrtG8tcEQCkTRZSW qez1IE5akAPRCaXqvg1KL0n+XX5x9Eu2hTeZJc+pBLfHBW2rrbtjCWf0euZ9oBzCS0n4 T9qijdxvK5YyHyu76d42grPwZOP9w3MJ36OtRgfVnh0+xVc4jF1XO0FCeF1rEaF9tP/x Ig== Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by userp2120.oracle.com with ESMTP id 2hfwy9prnr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 25 Apr 2018 13:48:57 +0000 Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w3PDmtrQ032457 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 25 Apr 2018 13:48:55 GMT Received: from abhmp0009.oracle.com (abhmp0009.oracle.com [141.146.116.15]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w3PDmt71009122; Wed, 25 Apr 2018 13:48:55 GMT Received: from dhcp-10-172-157-170.no.oracle.com (/10.172.157.170) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 25 Apr 2018 06:48:54 -0700 Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 11.3 \(3445.6.18\)) Subject: Re: [PATCH] rds: ib: Fix missing call to rds_ib_dev_put in rds_ib_setup_qp From: =?utf-8?Q?H=C3=A5kon_Bugge?= In-Reply-To: <1524655321-8379-1-git-send-email-dag.moxnes@oracle.com> Date: Wed, 25 Apr 2018 15:48:51 +0200 Cc: Santosh Shilimkar , "David S. Miller" , netdev@vger.kernel.org, OFED mailing list , rds-devel@oss.oracle.com, linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Message-Id: <67AE1ED5-55ED-4572-92E9-9FCE18C824A5@oracle.com> References: <1524655321-8379-1-git-send-email-dag.moxnes@oracle.com> To: Dag Moxnes X-Mailer: Apple Mail (2.3445.6.18) X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8873 signatures=668698 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=15 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=625 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1804250132 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On 25 Apr 2018, at 13:22, Dag Moxnes wrote: >=20 > The function rds_ib_setup_qp is calling rds_ib_get_client_data and > should correspondingly call rds_ib_dev_put. This call was lost in > the non-error path with the introduction of error handling done in > commit 3b12f73a5c29 ("rds: ib: add error handle") >=20 > Signed-off-by: Dag Moxnes Reviewed-by: H=C3=A5kon Bugge Thxs, H=C3=A5kon > --- > net/rds/ib_cm.c | 3 ++- > 1 files changed, 2 insertions(+), 1 deletions(-) >=20 > diff --git a/net/rds/ib_cm.c b/net/rds/ib_cm.c > index eea1d86..13b38ad 100644 > --- a/net/rds/ib_cm.c > +++ b/net/rds/ib_cm.c > @@ -547,7 +547,7 @@ static int rds_ib_setup_qp(struct rds_connection = *conn) > rdsdebug("conn %p pd %p cq %p %p\n", conn, ic->i_pd, > ic->i_send_cq, ic->i_recv_cq); >=20 > - return ret; > + goto out; >=20 > sends_out: > vfree(ic->i_sends); > @@ -572,6 +572,7 @@ static int rds_ib_setup_qp(struct rds_connection = *conn) > ic->i_send_cq =3D NULL; > rds_ibdev_out: > rds_ib_remove_conn(rds_ibdev, conn); > +out: > rds_ib_dev_put(rds_ibdev); >=20 > return ret; > --=20 > 1.7.1 >=20 > -- > To unsubscribe from this list: send the line "unsubscribe linux-rdma" = in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html