driver inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/IDC64W CVE: NA ---------------------------------------------------------------------- Remove redundant callback validation and invocation. Asynchronous algorithms return -EINPROGRESS or -EBUSY to let crypto_wait_req() wait for the result, but synchronous algorithms do not return these values, so crypto_wait_req() does not enter a waiting state. Therefore, there is no need to explicitly invoke the callback completion notification. Fixes: cc77833b99b0 ("crypto: hisilicon/zip - support fallback for zip") Signed-off-by: Chenghai Huang <huangchenghai2@huawei.com> Signed-off-by: JiangShui Yang <yangjiangshui@h-partners.com> --- drivers/crypto/hisilicon/zip/zip_crypto.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/crypto/hisilicon/zip/zip_crypto.c b/drivers/crypto/hisilicon/zip/zip_crypto.c index e1e5bd424638..21cd47ceed75 100644 --- a/drivers/crypto/hisilicon/zip/zip_crypto.c +++ b/drivers/crypto/hisilicon/zip/zip_crypto.c @@ -137,9 +137,6 @@ static int hisi_zip_fallback_do_work(struct crypto_comp *tfm, struct acomp_req * kunmap_local(output); kunmap_local(input); - if (acomp_req->base.complete) - acomp_request_complete(acomp_req, ret); - return ret; } -- 2.43.0