[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <83132be0-a33b-ab7a-0da9-cc5c9398d0d4@embeddedor.com>
Date: Wed, 2 Sep 2020 19:34:26 -0500
From: "Gustavo A. R. Silva" <gustavo@...eddedor.com>
To: Alex Dewar <alex.dewar90@...il.com>
Cc: Doug Ledford <dledford@...hat.com>, Jason Gunthorpe <jgg@...pe.ca>,
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
Hi Alex,
On 9/2/20 11:24, 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")
If you are using a public Coverity scan, please also include the Coverity ID.
In this case ID 1496814, something like:
Addresses-Coverity-ID: 1496814 ("Resource leak")
People that don't include an CID is because they are using a private Coverity
scan, so it doesn't make sense for them to add an ID because no one but
them have access to that scan report.
Thanks
--
Gustavo
Powered by blists - more mailing lists