kernel_samsung_a53x/drivers/crypto/cavium/cpt
Christophe JAILLET eb171a9ed2 crypto: cavium - Fix an error handling path in cpt_ucode_load_fw()
[ Upstream commit 572b7cf08403b6c67dfe0dc3e0f2efb42443254f ]

If do_cpt_init() fails, a previous dma_alloc_coherent() call needs to be
undone.

Add the needed dma_free_coherent() before returning.

Fixes: 9e2c7d99941d ("crypto: cavium - Add Support for Octeon-tx CPT Engine")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-12-17 13:24:00 +01:00
..
cpt_common.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cpt_hw_types.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cptpf.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cptpf_main.c crypto: cavium - Fix an error handling path in cpt_ucode_load_fw() 2024-12-17 13:24:00 +01:00
cptpf_mbox.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cptvf.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cptvf_algs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cptvf_algs.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cptvf_main.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cptvf_mbox.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cptvf_reqmanager.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
request_manager.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00