crypto: qce - Fix some error handling path
authorWei Yongjun <weiyongjun1@huawei.com>
Wed, 19 May 2021 14:16:50 +0000 (14:16 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 28 May 2021 07:11:44 +0000 (15:11 +0800)
commit5c0ecc2e81ecfd9eba8a4945d49c401615c167ca
tree444a59eaa47dc4d38852685cfee881567bcf9783
parent308365483351fad2c2c15e173df60c7168c828a5
crypto: qce - Fix some error handling path

Fix to return negative error code from the error handling
cases instead of 0.

Fixes: 9363efb4181c ("crypto: qce - Add support for AEAD algorithms")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/qce/aead.c