From: Jason Gunthorpe <jgg@ziepe.ca>
To: Leon Romanovsky <leon@kernel.org>
Cc: Doug Ledford <dledford@redhat.com>,
Maor Gottlieb <maorg@mellanox.com>,
linux-rdma@vger.kernel.org
Subject: Re: [PATCH rdma-next] IB/cma: Fix ports memory leak in cma_configfs
Date: Fri, 22 May 2020 15:46:56 -0300 [thread overview]
Message-ID: <20200522184656.GA5742@ziepe.ca> (raw)
In-Reply-To: <20200521072650.567908-1-leon@kernel.org>
On Thu, May 21, 2020 at 10:26:50AM +0300, Leon Romanovsky wrote:
> From: Maor Gottlieb <maorg@mellanox.com>
>
> The allocated ports structure in never freed. The free function
> should be called by release_cma_ports_group, but the group
> is never released since we don't remove its default group.
>
> Remove default groups when device group is deleted.
>
> Fixes: 045959db65c6 ("IB/cma: Add configfs for rdma_cm")
> Signed-off-by: Maor Gottlieb <maorg@mellanox.com>
> Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
> ---
> drivers/infiniband/core/cma_configfs.c | 13 +++++++++++++
> 1 file changed, 13 insertions(+)
Applied to for-next, thanks
Jason
prev parent reply other threads:[~2020-05-22 18:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-21 7:26 [PATCH rdma-next] IB/cma: Fix ports memory leak in cma_configfs Leon Romanovsky
2020-05-22 18:46 ` Jason Gunthorpe [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200522184656.GA5742@ziepe.ca \
--to=jgg@ziepe.ca \
--cc=dledford@redhat.com \
--cc=leon@kernel.org \
--cc=linux-rdma@vger.kernel.org \
--cc=maorg@mellanox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).