summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/syscall-counts.py
diff options
context:
space:
mode:
authorHongling Zeng <zenghongling@kylinos.cn>2026-07-27 14:11:42 +0800
committerVinod Koul <vkoul@kernel.org>2026-09-09 19:06:31 +0530
commitf472919f4c0650d7fb22bb230eacaada0c6ee951 (patch)
tree937e39a465523695792972329f1e3370f577c333 /tools/perf/scripts/python/syscall-counts.py
parentbe9bb4b4a3c4611ecfbe3d785894a09d331c6f25 (diff)
dmaengine: sun6i-dma: Fix use-after-free in error handling paths
In error handling paths, the for loop frees v_lli in the loop body, then accesses v_lli->v_lli_next and v_lli->p_lli_next in the increment expression, which is use-after-free. Fix by refactoring the cleanup into a helper function sun6i_dma_free_desc() that saves both the next virtual and physical pointers before freeing the current node, preventing the use-after-free. Fixes: 555859308723 ("dmaengine: sun6i: Add driver for the Allwinner A31 DMA controller") Signed-off-by: Hongling Zeng <zenghongling@kylinos.cn> Suggested-by: Jernej Skrabec <jernej.skrabec@gmail.com> Reviewed-by: Jernej Skrabec <jernej.skrabec@gmail.com> Reviewed-by: Frank Li <Frank.Li@nxp.com> Link: https://patch.msgid.link/20260727061142.44195-1-zenghongling@kylinos.cn Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions