Re: [PATCH crypto 1/2] crypto: caam - fix mem leak in ahash_setkey

2014-04-22 Thread Marek Vasut
On Friday, April 18, 2014 at 12:01:41 PM, Horia Geanta wrote: In case hash key is bigger than algorithm block size, it is hashed. In this case, memory is allocated to keep this hash in hashed_key. hashed_key has to be freed on the key_dma dma mapping error path. Cc: sta...@vger.kernel.org #

[PATCH crypto 1/2] crypto: caam - fix mem leak in ahash_setkey

2014-04-18 Thread Horia Geanta
In case hash key is bigger than algorithm block size, it is hashed. In this case, memory is allocated to keep this hash in hashed_key. hashed_key has to be freed on the key_dma dma mapping error path. Cc: sta...@vger.kernel.org # 3.10+ Signed-off-by: Horia Geanta horia.gea...@freescale.com ---