From patchwork Tue Nov 3 20:34:26 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg Kroah-Hartman X-Patchwork-Id: 316855 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 98085C2D0A3 for ; Tue, 3 Nov 2020 21:45:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5280022409 for ; Tue, 3 Nov 2020 21:45:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604439913; bh=mXhfF6Ob3ccPeMIR1MCc+9rz8G+t3MHGIo+yTvLE0DI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=au+26T1GvnSxULzG19uHusqCkQ7sLnX3hSav/kSnsCT7y9NiM2CNdL07zoe3Sz9Mn jCtFj0iHoXLHwfdXtZTV9jeIIemQqLXSvDtK272sTBKgQ673iiCUS3JFazlzLCefNn +srtJQueDGrJwrqfzLs491Sr5FOZMQ8AZi5lphCM= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731649AbgKCVpM (ORCPT ); Tue, 3 Nov 2020 16:45:12 -0500 Received: from mail.kernel.org ([198.145.29.99]:51208 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732253AbgKCUxW (ORCPT ); Tue, 3 Nov 2020 15:53:22 -0500 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D83ED22226; Tue, 3 Nov 2020 20:53:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604436802; bh=mXhfF6Ob3ccPeMIR1MCc+9rz8G+t3MHGIo+yTvLE0DI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=2CrXaD6GfHJx7chbnq/RlRk3yw1bkzNwBArnHYoXIYJ7jm5U5vs1xMs0wv1dK7IH9 axAXz15PgSq8hwlSVOLsK/2kBdmQaZcLiUFALGmQTCUrjkTOy1OYqgtpvKDxQZOSK4 wMh+yULemqjQb08j7OOhW0FE+HcDaCrV+egPhwJE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Michal Kalderon , Igor Russkikh , Alok Prasad , Jason Gunthorpe , Sasha Levin Subject: [PATCH 5.4 018/214] RDMA/qedr: Fix memory leak in iWARP CM Date: Tue, 3 Nov 2020 21:34:26 +0100 Message-Id: <20201103203251.561562599@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201103203249.448706377@linuxfoundation.org> References: <20201103203249.448706377@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Alok Prasad [ Upstream commit a2267f8a52eea9096861affd463f691be0f0e8c9 ] Fixes memory leak in iWARP CM Fixes: e411e0587e0d ("RDMA/qedr: Add iWARP connection management functions") Link: https://lore.kernel.org/r/20201021115008.28138-1-palok@marvell.com Signed-off-by: Michal Kalderon Signed-off-by: Igor Russkikh Signed-off-by: Alok Prasad Signed-off-by: Jason Gunthorpe Signed-off-by: Sasha Levin --- drivers/infiniband/hw/qedr/qedr_iw_cm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/infiniband/hw/qedr/qedr_iw_cm.c b/drivers/infiniband/hw/qedr/qedr_iw_cm.c index e521f3c3dbbf1..653ddf30973ec 100644 --- a/drivers/infiniband/hw/qedr/qedr_iw_cm.c +++ b/drivers/infiniband/hw/qedr/qedr_iw_cm.c @@ -727,6 +727,7 @@ int qedr_iw_destroy_listen(struct iw_cm_id *cm_id) listener->qed_handle); cm_id->rem_ref(cm_id); + kfree(listener); return rc; }