crypto: caam - fix mem leak in ahash_setkey
authorHoria Geanta <horia.geanta@freescale.com>
Fri, 18 Apr 2014 10:01:41 +0000 (13:01 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 28 Apr 2014 10:21:16 +0000 (18:21 +0800)
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.

Signed-off-by: Horia Geanta <horia.geanta@freescale.com>
Reviewed-by: Marek Vasut <marex@denx.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/caam/caamhash.c

Simple merge