diff options
| author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2024-11-08 18:22:27 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-12-05 14:01:21 +0100 |
| commit | 96de23233f3ee0a07f3ba819ee37c0dcbfa119ef (patch) | |
| tree | 8622ac1083c8810dca8dd3a2c5a3dbb9d5727d81 /kernel | |
| parent | bba9e38c5ad41d0a88b22a59e5b6dd3e31825118 (diff) | |
| download | linux-96de23233f3ee0a07f3ba819ee37c0dcbfa119ef.tar.gz linux-96de23233f3ee0a07f3ba819ee37c0dcbfa119ef.tar.bz2 linux-96de23233f3ee0a07f3ba819ee37c0dcbfa119ef.zip | |
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>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions
