linux-loongson/drivers/crypto/cavium/cpt
Christophe JAILLET 572b7cf084 crypto: cavium - Fix an error handling path in cpt_ucode_load_fw()
If do_cpt_init() fails, a previous dma_alloc_coherent() call needs to be
undone.

Add the needed dma_free_coherent() before returning.

Fixes: 9e2c7d9994 ("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>
2024-11-15 19:52:51 +08:00
..
cpt_common.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 206 2019-05-30 11:29:53 -07:00
cpt_hw_types.h crypto: cavium - Fix comment typo 2022-08-19 18:39:36 +08:00
cptpf_main.c crypto: cavium - Fix an error handling path in cpt_ucode_load_fw() 2024-11-15 19:52:51 +08:00
cptpf_mbox.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 206 2019-05-30 11:29:53 -07:00
cptpf.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 206 2019-05-30 11:29:53 -07:00
cptvf_algs.c crypto: cpt - Remove cfb 2023-12-08 11:59:46 +08:00
cptvf_algs.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 206 2019-05-30 11:29:53 -07:00
cptvf_main.c crypto: cavium - Use kcalloc() instead of kzalloc() 2021-12-17 16:59:47 +11:00
cptvf_mbox.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 206 2019-05-30 11:29:53 -07:00
cptvf_reqmanager.c crypto: drivers - Correct multiple typos in comments 2024-10-05 13:22:05 +08:00
cptvf.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 206 2019-05-30 11:29:53 -07:00
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
request_manager.h crypto: cpt - Fix sparse warnings 2020-07-03 14:18:35 +10:00