crypto: sha512-mb - add some missing unlock on error
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 25 Apr 2017 09:18:54 +0000 (12:18 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 18 May 2017 05:19:48 +0000 (13:19 +0800)
commit15a9b363de232236a31922d5a928d1830bc42060
tree603ed99af9cf3eb40b5ac093e35f1c4deef2c2bb
parent981a2e3e45c554611316b6eb28d00204586637b3
crypto: sha512-mb - add some missing unlock on error

We recently added some new locking but missed the unlocks on these
error paths in sha512_ctx_mgr_submit().

Fixes: c459bd7beda0 ("crypto: sha512-mb - Protect sha512 mb ctx mgr access")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Tim Chen <tim.c.chen@linux.intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/x86/crypto/sha512-mb/sha512_mb.c