diff options
author | Clément Le Goffic <clement.legoffic@foss.st.com> | 2025-06-30 14:59:23 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2025-06-30 15:59:47 +0100 |
commit | f4d8438e6a402ad40cf4ccb6e2d2417d9ed47821 (patch) | |
tree | 4aabb616a12d06df1a69b6ef64d33b34ab6df2bf /rust/helpers/helpers.c | |
parent | 7e1c28fbf235791cb5046fafdac5bc16fe8e788d (diff) |
spi: stm32: fix sram pool free in probe error path
Add a test to check whether the sram_pool is NULL before freeing it.
Fixes: d17dd2f1d8a1 ("spi: stm32: use STM32 DMA with STM32 MDMA to enhance DDR use")
Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Acked-by: Alain Volmat <alain.volmat@foss.st.com>
Signed-off-by: Clément Le Goffic <clement.legoffic@foss.st.com>
Link: https://patch.msgid.link/20250630-spi-fix-v2-1-4680939e2a3e@foss.st.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions