diff options
| author | Myeonghun Pak <mhun512@gmail.com> | 2026-09-12 15:00:56 -0400 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-09-25 00:02:49 +0100 |
| commit | 926f9c44a76fe9e722180d0804c607c6cf1ebbb4 (patch) | |
| tree | 6ecc7e85824063c973efc3805ca60b286aa8c6ef /scripts/Makefile.thinlto | |
| parent | 2a252105e03411e9a5fed78ad4a99e3b6dc98afd (diff) | |
| download | linux-926f9c44a76fe9e722180d0804c607c6cf1ebbb4.tar.gz linux-926f9c44a76fe9e722180d0804c607c6cf1ebbb4.zip | |
spi: rockchip-sfc: skip DMA cleanup in PIO mode
With rockchip,sfc-no-dma, probe skips allocating and mapping the transfer
buffer. However, controller registration failure and driver removal still
call dma_unmap_single() for that nonexistent mapping.
Guard the DMA mapping and buffer cleanup with use_dma. Keep the existing
cleanup for allocation and mapping failures on the DMA path.
This issue was identified during our ongoing static-analysis research while
reviewing kernel code.
Fixes: ee795e82e101 ("spi: rockchip-sfc: Fix DMA-API usage")
Assisted-by: OpenAI:GPT-5.6
Co-developed-by: Ijae Kim <ae878000@gmail.com>
Signed-off-by: Ijae Kim <ae878000@gmail.com>
Signed-off-by: Myeonghun Pak <mhun512@gmail.com>
Link: https://patch.msgid.link/20260912190056.42192-1-mhun512@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
