Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp1940569ima; Thu, 25 Oct 2018 07:19:25 -0700 (PDT) X-Google-Smtp-Source: AJdET5fPDSRY/5KBWEZD0P8Gylj4ME1tVGED8PF2/6hZyiu4BYD8zaU08YnzEyX6cjWnOZjAZy14 X-Received: by 2002:a17:902:6544:: with SMTP id d4-v6mr1697005pln.292.1540477165792; Thu, 25 Oct 2018 07:19:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540477165; cv=none; d=google.com; s=arc-20160816; b=MTs6xZkjMcTaEb6G5sjQtKuEAhQrasfK+TEmTRwYRcJAhncFRTMaPJNGAq5WoQImlc jcY/18qLcupBHUeTB7Hr8JNroGpuvnNT11DViOiUoG6094a3lp9Ukz0SphQ+o5FT3GFh 9xtFZj22RyhKPgG/FCPM7xGANMkqq6FLiSb6Lqws7vTbp50sWLIVkWtnZX3d+Gfhlm8j vBhNxd9iLdlGrpmzZeuAVeAxK43rpYp2PTHwHbZioQuanID0/euYwa+9crjAvy7ez/+L mugnduuOhlMitGJLNdDKuPhD7/tuZyLJNf8gbPjO64fLT7CCNClDAvdaawq+yBMHxmT8 vv0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=fVTA/OL1qTNyn/TLOU5f2qVOO/dBt/gximvdnMwzrOQ=; b=aLLDmw9VAOk1gViyqAEASUPj61kJqBobNohJLtgP5uvMLLfEcJFT/BccUa+HUpEZuU lwC463palE0wcL9jbt+91Xdi5NGc/W2HSglsHdee3MoYPtw4l7LIQ2hgFcoMq/0ezNFT EIyaMdgYRCnTogmtQv5AvoC1RCtWDPplqeWTMCx5aEFTUK3SmVvwnJPx16t+IxwdsPxL k0a6CaHuqRhYX5U+umtqvrZDLJ84+vSrb5+NR3O29AKmK9cjnkBkjQk3D/CwWsMepIyW Yspx+4OIHTRNP36rz7FYMlXn3UJv67508BksyU8YkKGpWPHaZFNW8rVDkUGt0GkutR0H iFWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=mDvA8UMC; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id gn15si7669860plb.321.2018.10.25.07.18.21; Thu, 25 Oct 2018 07:19:25 -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=@kernel.org header.s=default header.b=mDvA8UMC; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729116AbeJYWsm (ORCPT + 99 others); Thu, 25 Oct 2018 18:48:42 -0400 Received: from mail.kernel.org ([198.145.29.99]:57484 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728237AbeJYWsl (ORCPT ); Thu, 25 Oct 2018 18:48:41 -0400 Received: from sasha-vm.mshome.net (unknown [167.98.65.38]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5B61920834; Thu, 25 Oct 2018 14:15:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1540476945; bh=cc8apPSHPbm/IZRgPDnKBN9IJ+K9BEZ0UGmLlyR/4wU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mDvA8UMCGLJ7LaSzqUK0Hez42iU02qdymJu2MWtn0WkcBocCVRUGsgWagGMal/FW4 +cjtEoOmpp6Ou4IZIILXVKYRqP8RhAALPepaEdc8jGUrXjOIBUQZmyYAXlM+2kz74f kvjtTSHHU5IhrfLYQejutsVYc9r0E5GkthmYKTBE= From: Sasha Levin To: stable@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Dag Moxnes , "David S . Miller" , Sasha Levin Subject: [PATCH AUTOSEL 4.9 55/98] rds: ib: Fix missing call to rds_ib_dev_put in rds_ib_setup_qp Date: Thu, 25 Oct 2018 10:13:40 -0400 Message-Id: <20181025141423.213774-55-sashal@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181025141423.213774-1-sashal@kernel.org> References: <20181025141423.213774-1-sashal@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Dag Moxnes [ Upstream commit 91a825290ca4eae88603bc811bf74a45f94a3f46 ] 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") Signed-off-by: Dag Moxnes Reviewed-by: HÃ¥kon Bugge Acked-by: Santosh Shilimkar Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- net/rds/ib_cm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/net/rds/ib_cm.c b/net/rds/ib_cm.c index 169156cfd4c8..96e61eab19bc 100644 --- a/net/rds/ib_cm.c +++ b/net/rds/ib_cm.c @@ -505,7 +505,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); - return ret; + goto out; sends_out: vfree(ic->i_sends); @@ -530,6 +530,7 @@ static int rds_ib_setup_qp(struct rds_connection *conn) ic->i_send_cq = NULL; rds_ibdev_out: rds_ib_remove_conn(rds_ibdev, conn); +out: rds_ib_dev_put(rds_ibdev); return ret; -- 2.17.1