From: Horia Geanta Date: Fri, 18 Apr 2014 10:01:41 +0000 (+0300) Subject: crypto: caam - fix mem leak in ahash_setkey X-Git-Tag: omap-for-v3.16/fixes-against-rc1~91^2~2^2~45 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3d67be2761dc4b5b792037f296f3394a29581efc;p=pandora-kernel.git 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 Reviewed-by: Marek Vasut Signed-off-by: Herbert Xu --- Reading git-diff-tree failed