crypto: hisilicon/sec2 - optimize the error return process

[ Upstream commit 1bed82257b ]

Add the printf of an error message and optimized the handling
process of ret.

Signed-off-by: Chenghai Huang <huangchenghai2@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Stable-dep-of: fd337f852b ("crypto: hisilicon/sec2 - fix for aead icv error")
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Chenghai Huang 2023-12-09 15:01:35 +08:00 • committed by Greg Kroah-Hartman
commit fdc596efd7