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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Jul 2021 14:56:54 +0000 (16:56 +0200)
commite4a577d617914293ece95b74c51530327f53bd2a
treea507aefd236b522712b2a685e9ba5e5af18d035d
parentfb0c0a04e4243d39e6dc973efa63e139d2bedfdf
crypto: qce - fix error return code in qce_skcipher_async_req_handle()

commit a8bc4f5e7a72e4067f5afd7e98b61624231713ca upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/crypto/qce/skcipher.c