OSDN Git Service

crypto: inside-secure - fix missing unlock on error in safexcel_ahash_send_req()
authorweiyongjun \(A\) <weiyongjun1@huawei.com>
Tue, 13 Mar 2018 14:54:03 +0000 (14:54 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 23 Mar 2018 15:39:58 +0000 (23:39 +0800)
commitefa94457e57f7b45207554db6e7f1fdaabd0f198
tree8955f692225eb7a173c3c86c7255a6ed61100b3e
parent0108aab1161532c9b62a0d05b8115f4d0b529831
crypto: inside-secure - fix missing unlock on error in safexcel_ahash_send_req()

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

Fixes: cff9a17545a3 ("crypto: inside-secure - move cache result dma mapping to request")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Acked-by: Antoine Tenart <antoine.tenart@bootlin.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/inside-secure/safexcel_hash.c