Re: [PATCH] crypto: cavium - add release_firmware to all return case
From: Herbert Xu
Date: Tue Aug 22 2017 - 03:58:36 EST
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@xxxxxxxxx>
Patch applied. Thanks.
--
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt