linux/drivers/crypto/qce
Thorsten Blum fef187c619 crypto: qce - fix error path in devm_qce_register_algs
commit 9c75402286 upstream.

If ops->register_algs() fails, the error path repeatedly calls the same
ops->unregister_algs() from the failed registration. Use the loop index
to unregister the previously registered algorithms instead.

Fixes: e80cf84b60 ("crypto: qce - unregister previously registered algos in error path")
Cc: stable@vger.kernel.org
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2026-08-23 14:17:16 +02:00
..
aead.c crypto: qce - fix priority to be less than ARMv8 CE 2025-03-13 12:50:30 +01:00
aead.h crypto: qce - Schedule fallback aead algorithm 2021-05-14 19:07:56 +08:00
cipher.h crypto: qce - Remover src_tbl from qce_cipher_reqctx 2021-03-07 15:13:17 +11:00
common.c crypto: qce - Add support for AEAD algorithms 2021-05-14 19:07:56 +08:00
common.h crypto: qce - Add support for AEAD algorithms 2021-05-14 19:07:55 +08:00
core.c crypto: qce - fix error path in devm_qce_register_algs 2026-08-23 14:17:16 +02:00
core.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 284 2019-06-05 17:36:37 +02:00
dma.c crypto: qce - use cryptlen when adding extra sgl 2020-02-13 17:05:26 +08:00
dma.h crypto: qce - use cryptlen when adding extra sgl 2020-02-13 17:05:26 +08:00
Makefile crypto: qce - Add support for AEAD algorithms 2021-05-14 19:07:55 +08:00
regs-v5.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 284 2019-06-05 17:36:37 +02:00
sha.c crypto: qce - fix priority to be less than ARMv8 CE 2025-03-13 12:50:30 +01:00
sha.h crypto: sha - split sha.h into sha1.h and sha2.h 2020-11-20 14:45:33 +11:00
skcipher.c crypto: qce - fix priority to be less than ARMv8 CE 2025-03-13 12:50:30 +01:00