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

2015-01-25 Thread Christophe JAILLET
Oups, should be: free_pages((unsigned long)buf_out, pages); free_pages((unsigned long)buf_in, pages); CJ Le 26/01/2015 06:40, Christophe Jaillet a écrit : If only one of the 2 __get_free_pages fails, then there is a memory leak Signed-off-by: Christophe Jaillet --- drivers/crypt

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

2015-01-25 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/omap-aes.c | 2 ++ drivers/crypto/omap-des.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/drivers/crypto/omap-aes.c b/drivers/crypto/omap-aes.c index f79dd41..c