OSDN Git Service

crypto: qce - fix error return code in qce_skcipher_async_req_handle()
authorWei Yongjun <weiyongjun1@huawei.com>
Wed, 2 Jun 2021 11:36:45 +0000 (11:36 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 11 Jun 2021 07:03:29 +0000 (15:03 +0800)
commita8bc4f5e7a72e4067f5afd7e98b61624231713ca
tree6979c71ae71b4e91488a6ed6894c98b38e03e40b
parent2dcf45622481a22ffe108e2f381a929c9132c605
crypto: qce - fix error return code in qce_skcipher_async_req_handle()

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

Fixes: 1339a7c3ba05 ("crypto: qce: skcipher: Fix incorrect sg count for dma transfers")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: Thara Gopinath <thara.gopinath@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/qce/skcipher.c