commit | 3d67be2761dc4b5b792037f296f3394a29581efc | [log] [tgz] |
---|---|---|
author | Horia Geanta <horia.geanta@freescale.com> | Fri Apr 18 13:01:41 2014 +0300 |
committer | Herbert Xu <herbert@gondor.apana.org.au> | Mon Apr 28 18:21:16 2014 +0800 |
tree | 6ac408e5c5cf51711740af0cafb7fd1b8e1169b1 | |
parent | f51f593b3eb194d01d8980316e6bb1f7d72f567a [diff] |
crypto: caam - fix mem leak in ahash_setkey 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>