diff options
| author | Felix Gu <ustc.gu@gmail.com> | 2026-03-29 00:07:07 +0800 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-03-30 13:46:30 +0100 |
| commit | 534025950c9fe4dfbe476b3938d73a26814047d1 (patch) | |
| tree | 93267014eaa5b6f078253b847f8ce97463e0f545 /include/asm-cris/git@git.tavy.me:linux.git | |
| parent | 5a570c8d6e55689253f6fcc4a198c56cca7e39d6 (diff) | |
spi: stm32-ospi: Fix DMA channel leak on stm32_ospi_dma_setup() failure
When stm32_ospi_dma_setup() fails, the DMA channels allocated by
stm32_ospi_get_resources() were never released. Add proper cleanup
in the error path.
Fixes: e35a7607e05d ("spi: stm32-ospi: Set DMA maxburst dynamically")
Signed-off-by: Felix Gu <ustc.gu@gmail.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
Link: https://patch.msgid.link/20260329-stm32-ospi-v1-2-142122466412@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/asm-cris/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
