[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20170822075818.GF6269@gondor.apana.org.au>
Date: Tue, 22 Aug 2017 15:58:18 +0800
From: Herbert Xu <herbert@...dor.apana.org.au>
To: Corentin Labbe <clabbe.montjoie@...il.com>
Cc: george.cherian@...ium.com, davem@...emloft.net,
linux-crypto@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] crypto: cavium - add release_firmware to all return case
On Mon, Aug 14, 2017 at 01:58:54PM +0200, Corentin Labbe wrote:
> Two return case misses to call release_firmware() and so leak some
> memory.
>
> This patch create a fw_release label (and so a common error path)
> and use it on all return case.
>
> Detected by CoverityScan, CID#1416422 ("Resource Leak")
>
> Signed-off-by: Corentin Labbe <clabbe.montjoie@...il.com>
Patch applied. Thanks.
--
Email: Herbert Xu <herbert@...dor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Powered by blists - more mailing lists