Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp819985pxb; Tue, 3 Nov 2020 13:28:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJwzWbPtvvLfoW6nTNEIeB6N7pundjKmx/gFeiXjh9QHGsANcqkDSNoJIBnf9wPpZMUh0Wq2 X-Received: by 2002:a17:907:1102:: with SMTP id qu2mr22048044ejb.300.1604438885108; Tue, 03 Nov 2020 13:28:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604438885; cv=none; d=google.com; s=arc-20160816; b=A5KeLG94pxb2mBZcryNEZZ8ffMuLA0CynFnh9SCLUkHuLIQ6eGEZTAmsLNJazXrX3b sOQYP05DV8wOb5vOiZph03WyQiP/P7MIaTbxt1W9nMGwrnLk50/Q20XaeWc+5tXv+Xk6 h216dN+fa8wotKuuJn8aOUbmbZInuntLrm6u3vz1N0LYFw2NQ9XjiWqPDQFuRzGerpXx /52jfustwxHg9fI+jwRL/WmqaFGIIZ5ftULcYOEhpQsbFyITpsXrIvoTMZBOqjOu8qo/ gfb6WcCG1x03jCMkW4QGvLVzPEdv6+WutOoHWWcygq/7VxCA3quiiu6iYIw27fXjNYvO uLwQ== 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=6GdgthfwIIOXK/Y9OWVtY56pPmk2BKtWUMiZBg2Jok4=; b=nZNJLPaKaGkNlIUia+L9u0/k4mkWIopwpWBRxxObZTasuaoLK3FoL25qDkeurK7LXi AE594xxW+AmtE5PXkK7wIOKDO5u7t2jrhRPGf9Er7Mr6XlZsx6zW5s6hCgETxzCmayuz ILF74A/SXjur17b/HjWnWpOAzR+hH9ccBYam6a4UnMmHsGda926OvvFAoiuXmgZK48/S yDJLF4yXb41UvSUuxrcVfLtr9J8JpPySIs2yw+jISJSaUnhPYR3oWYukXEDyE2XKAtzb SGoSzTXU+sL3nbjPSh501aXzN/Hj6oK5f1MyrPRh6N9Pk5ygkGFju0UpFF0EjwZ2W/AK QQIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=dWQNFb8O; 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 w6si7249005edq.105.2020.11.03.13.27.42; Tue, 03 Nov 2020 13:28:05 -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=dWQNFb8O; 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 S2388007AbgKCVEk (ORCPT + 99 others); Tue, 3 Nov 2020 16:04:40 -0500 Received: from mail.kernel.org ([198.145.29.99]:42596 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387990AbgKCVEa (ORCPT ); Tue, 3 Nov 2020 16:04:30 -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 BAEC6205ED; Tue, 3 Nov 2020 21:04:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604437470; bh=3eol1acl+C68n5/aWIpoRKtuM51gU4LAbFrTdWOf1iM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dWQNFb8Oub31kWiG79caK9Lm3xmr4PAEMVlCUSpVultQ6F+B8oXvsvEjl3XYkS8O5 n7BsJPzQmMiZuJBkndH+pOYrOYGJM04AJ3glZ4NxJO1cDbQhUyK/hJ093s+Ga4Pso8 m9lI+Fbz6WJO7V68xH7Kb676cc7639XQHomG9Psg= 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 4.19 052/191] RDMA/qedr: Fix memory leak in iWARP CM Date: Tue, 3 Nov 2020 21:35:44 +0100 Message-Id: <20201103203239.374451899@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201103203232.656475008@linuxfoundation.org> References: <20201103203232.656475008@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 e908dfbaa1378..1f1d6a000e5c9 100644 --- a/drivers/infiniband/hw/qedr/qedr_iw_cm.c +++ b/drivers/infiniband/hw/qedr/qedr_iw_cm.c @@ -677,6 +677,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