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 15:07:51 +0000 (17:07 +0200)
commitfbbd050e05d10035293a080dc70c303caa9263d7
tree060f48038d67a6c4647bcb155ee5ae4e038df43d
parentbd619678f6745c714ff490989037ccf2554ca7b1
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