[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20171129063712.GH21575@gondor.apana.org.au>
Date: Wed, 29 Nov 2017 17:37:12 +1100
From: Herbert Xu <herbert@...dor.apana.org.au>
To: Colin King <colin.king@...onical.com>
Cc: George Cherian <george.cherian@...ium.com>,
"David S . Miller" <davem@...emloft.net>,
linux-crypto@...r.kernel.org, kernel-janitors@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] crypto: cavium: fix memory leak on info
On Wed, Nov 15, 2017 at 12:37:19PM +0000, Colin King wrote:
> From: Colin Ian King <colin.king@...onical.com>
>
> The object info is being leaked on an error return path, fix this
> by setting ret to -ENOMEM and exiting via the request_cleanup path
> that will free info.
>
> Detected by CoverityScan, CID#1408439 ("Resource Leak")
>
> Fixes: c694b233295b ("crypto: cavium - Add the Virtual Function driver for CPT")
> Signed-off-by: Colin Ian King <colin.king@...onical.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