crypto: ux500 - fix error return code in hash_dma_final()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Fri, 22 Mar 2013 13:18:44 +0000 (21:18 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 3 Apr 2013 01:06:28 +0000 (09:06 +0800)
commiteb16796302bad44fd346d4e0e15f8086132d1363
tree1009bf631d1fc036b6114d0ce7cb85d3f36beb10
parent5cec26e9843e4f16974e5a30a3ffada1557b661d
crypto: ux500 - fix error return code in hash_dma_final()

Fix to return a negative error code from the error handling
case instead of 0, as returned elsewhere in this function.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/ux500/hash/hash_core.c