crypto: sun4i-ss - fix missing unlock on error in sun4i_hash()
authorWei Yongjun <weiyj.lk@gmail.com>
Sat, 20 Aug 2016 10:48:53 +0000 (10:48 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 24 Aug 2016 13:04:49 +0000 (21:04 +0800)
commitb46b9d1aadf7f31eb5c0bab20cd61e71011156cf
tree182cb8b6ed1354e4f2a7446f48aeb9c8fb327765
parent39457acda9139bb078d1b8f974651a194a397060
crypto: sun4i-ss - fix missing unlock on error in sun4i_hash()

Add the missing unlock before return from function sun4i_hash()
in the error handling case.

Fixes: 477d9b2e591b ("crypto: sun4i-ss - unify update/final function")
Signed-off-by: Wei Yongjun <weiyj.lk@gmail.com>
Acked-by: Corentin LABBE <clabbe.montjoie@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/sunxi-ss/sun4i-ss-hash.c