Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp830768pxb; Tue, 3 Nov 2020 13:47:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJypMJKiO17s7g2we30plnhE3qmJSf1vFKNjpjduK5q26W/M9cdjB7O1VWtZfe84N+7zSRVY X-Received: by 2002:a17:906:3a8c:: with SMTP id y12mr21108426ejd.531.1604440067412; Tue, 03 Nov 2020 13:47:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604440067; cv=none; d=google.com; s=arc-20160816; b=LAhjlos6Wak3Fnksl8cbPAg0mpdWXEHkM3RwXPQ4QnV7d8e7Hcp8BeM0OtkgdwQZN3 NeF+HtMefVAIWo1zYc+qFV8IKxVRkN056cflPu2UiNBz+Hcc/bI8dfeU4CI7ssD3+8lT vIG9riUdjq+GDvsa2N2Qt67Lad9WiSnQC7eYC5meFIJIGU1HQb0SeBubp3Bm5mr7lent RbG9OR/ismsx0DidfiqhZ8XWFrOr0y5PRnCHZyjQXJwbFDk07I1SVawcRhui4sGjBEap m0SITGAFtslYdinDyap4uf4+NFXekGw1nG2moADbvd7DO658r+TqoUYWzux1fY1W0J8+ YHqQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=VOqt/DPwRf2LQi+Uyc1IixzVq23wGw7F+1SYVKxllzk=; b=oosTh/shUkuzQQtdsz8RYj11lVeTfzUEXAr306XIDrUOJTbV+wweMtP9i3wlj97ziZ KJS3Fg+R8S2EkbekONPKbXr/q8al4amt3ASkPZ5ZPc1wGol+ntnA/W6cBQtpB0espGA/ Hhh59qr1a+MTbvLKmx/7AQRzKkEb9uJfYyO6p8vx1G3nSQjKXQQlNG48MXDwur+IkkSx UWZ0jS+JvZuHgLiUyDQTC8hL7WpVIBlm5lJXryEMVeVBYYrJMFYfpMEtglKn8DE4f1/B l1GKcnpPlt6n8rG5ZABWG9yv1vKHgSS7gTjgopWa5hBcvR0VEU4roqUZA1rQS/YMqNRv kAHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=2CrXaD6G; 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=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y7si52510ejd.450.2020.11.03.13.47.24; Tue, 03 Nov 2020 13:47:47 -0800 (PST) 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=@kernel.org header.s=default header.b=2CrXaD6G; 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=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732335AbgKCVpN (ORCPT + 99 others); Tue, 3 Nov 2020 16:45:13 -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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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; } -- 2.27.0