Re: [PATCH] crypto: cavium: fix leak on curr if curr->head fails to be allocated

From: Herbert Xu
Date: Mon Feb 27 2017 - 05:41:12 EST


On Fri, Feb 17, 2017 at 03:57:43PM +0000, Colin King wrote:
> From: Colin Ian King <colin.king@xxxxxxxxxxxxx>
>
> The exit path when curr->head cannot be allocated fails to kfree the
> earlier allocated curr. Fix this by kfree'ing it.
>
> Signed-off-by: Colin Ian King <colin.king@xxxxxxxxxxxxx>

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