Re: [PATCH] crypto: atmel: Free memory in error path

2015-01-25 Thread Herbert Xu
On Tue, Jan 20, 2015 at 08:15:52AM +0100, Christophe Jaillet wrote: > If only one of the 2 __get_free_pages fails, then there is a memory leak. > > Signed-off-by: Christophe Jaillet Applied. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.a

[PATCH] crypto: atmel: Free memory in error path

2015-01-19 Thread Christophe Jaillet
If only one of the 2 __get_free_pages fails, then there is a memory leak. Signed-off-by: Christophe Jaillet --- drivers/crypto/atmel-aes.c | 2 +- drivers/crypto/atmel-tdes.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/crypto/atmel-aes.c b/drivers/crypto/atmel