]> git.ipfire.org Git - thirdparty/linux.git/commit
crypto: hisilicon/qm - fix incorrect judgment in qm_get_complete_eqe_num()
authorChenghai Huang <huangchenghai2@huawei.com>
Thu, 20 Nov 2025 13:21:24 +0000 (21:21 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 19 Dec 2025 06:47:46 +0000 (14:47 +0800)
commitb74fd80d7fe578898a76344064d2678ce1efda61
treee66332598c618564fdf05d1bea3e4ff6902cae35
parent50fdb78b7c0bcc550910ef69c0984e751cac72fa
crypto: hisilicon/qm - fix incorrect judgment in qm_get_complete_eqe_num()

In qm_get_complete_eqe_num(), the function entry has already
checked whether the interrupt is valid, so the interrupt event
can be processed directly. Currently, the interrupt valid bit is
being checked again redundantly, and no interrupt processing is
performed. Therefore, the loop condition should be modified to
directly process the interrupt event, and use do while instead of
the current while loop, because the condition is always satisfied
on the first iteration.

Fixes: f5a332980a68 ("crypto: hisilicon/qm - add the save operation of eqe and aeqe")
Signed-off-by: Chenghai Huang <huangchenghai2@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/hisilicon/qm.c