[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20200902235909.GK24045@ziepe.ca>
Date: Wed, 2 Sep 2020 20:59:09 -0300
From: Jason Gunthorpe <jgg@...pe.ca>
To: Colin King <colin.king@...onical.com>
Cc: Doug Ledford <dledford@...hat.com>,
Leon Romanovsky <leon@...nel.org>, linux-rdma@...r.kernel.org,
kernel-janitors@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH][next] RDMA/ucma: fix memory leak of mc on an xa_alloc
failure
On Wed, Sep 02, 2020 at 05:28:05PM +0100, Colin King wrote:
> From: Colin Ian King <colin.king@...onical.com>
>
> Currently when an xa_alloc failure occurs the error exit path leaks
> the allocated object mc. Fix this by adding an error return path
> that frees mc and rename error exit paths err3 to err4 and err2 to err3.
>
> Fixes: 95fe51096b7a ("RDMA/ucma: Remove mc_list and rely on xarray")
> Signed-off-by: Colin Ian King <colin.king@...onical.com>
> ---
> drivers/infiniband/core/ucma.c | 11 ++++++-----
> 1 file changed, 6 insertions(+), 5 deletions(-)
Alex beat you too it, so I will use his patch, thanks
Jason
Powered by blists - more mailing lists