[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200902201057.GA1463739@nvidia.com>
Date: Wed, 2 Sep 2020 17:10:57 -0300
From: Jason Gunthorpe <jgg@...dia.com>
To: Alex Dewar <alex.dewar90@...il.com>
CC: Doug Ledford <dledford@...hat.com>,
Leon Romanovsky <leon@...nel.org>,
<linux-rdma@...r.kernel.org>, <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] RDMA/ucma: Fix resource leak on error path
On Wed, Sep 02, 2020 at 05:24:51PM +0100, Alex Dewar wrote:
> In ucma_process_join(), if the call to xa_alloc() fails, the function
> will return without freeing mc. Fix this by jumping to the correct line.
>
> In the process I renamed the jump labels to something more memorable for
> extra clarity.
>
> Addresses-Coverity: ("Resource leak")
> Fixes: 95fe51096b7a ("RDMA/ucma: Remove mc_list and rely on xarray")
> Signed-off-by: Alex Dewar <alex.dewar90@...il.com>
Applied to for-next, thanks
Jason
Powered by blists - more mailing lists