diff options
| author | Felix Gu <ustc.gu@gmail.com> | 2026-05-29 23:31:06 +0800 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-06-08 19:03:40 +0100 |
| commit | 7886054b06f762f62054957a8f6de0f14e6b7541 (patch) | |
| tree | 1f5c574cdd58efc29f4a528b769795fc8ffb92e8 /scripts/Makefile.thinlto | |
| parent | 2fb242e4f375b682c800ab40dd4fbbcde1711528 (diff) | |
spi: ep93xx: fix double-free of zeropage on DMA setup failure
If DMA setup fails after allocating the zeropage, the error path frees
the page but leaves espi->zeropage dangling. A subsequent call to
ep93xx_spi_release_dma() sees the non-NULL pointer and frees the page
again.
Clear the pointer after freeing in the error path of
ep93xx_spi_setup_dma().
Fixes: 626a96db1169 ("spi/ep93xx: add DMA support")
Signed-off-by: Felix Gu <ustc.gu@gmail.com>
Link: https://patch.msgid.link/20260529-ep93xx-v1-1-9185070ca1fc@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
