linux-yocto/drivers/crypto/qce
Bartosz Golaszewski 5d5b673b4d crypto: qce - unregister previously registered algos in error path
commit e80cf84b60 upstream.

If we encounter an error when registering alorithms with the crypto
framework, we just bail out and don't unregister the ones we
successfully registered in prior iterations of the loop.

Add code that goes back over the algos and unregisters them before
returning an error from qce_register_algs().

Cc: stable@vger.kernel.org
Fixes: ec8f5d8f6f ("crypto: qce - Qualcomm crypto engine driver")
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-02-21 13:49:49 +01:00
..
aead.c
aead.h
cipher.h
common.c
common.h
core.c crypto: qce - unregister previously registered algos in error path 2025-02-21 13:49:49 +01:00
core.h
dma.c
dma.h
Makefile
regs-v5.h
sha.c
sha.h
skcipher.c