summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorSlavin Liu <bolin.liu@seu.edu.cn>2026-09-11 14:09:02 +0800
committerVinod Koul <vkoul@kernel.org>2026-09-15 22:12:06 +0530
commitbfd958664fccd794377a8adb74b492498c824643 (patch)
treea503950f931e8f0984e97c6586642fafb4ff9a9a /tools/perf/scripts/python
parent32ac4723e5526c44e5a1f3b1586578c17647f2ef (diff)
downloadlinux-next-bfd958664fccd794377a8adb74b492498c824643.tar.gz
linux-next-bfd958664fccd794377a8adb74b492498c824643.zip
dmaengine: fsl-edma: check channel acquisition before use
dma_get_slave_channel() can return NULL when acquiring a channel fails, for example if fsl_edma_alloc_chan_resources() cannot request an IRQ. fsl_edma3_xlate() dereferences that return value to update privatecnt. Acquire and check the channel before publishing its source ID and request parameters. A NULL-only check after the existing source-ID assignment would leave the failed request marked as in use, causing fsl_edma_srcid_in_use() to reject a subsequent request for that source. The channel resource-allocation callback does not consume these request parameters, so set them only after acquisition succeeds. The existing scoped mutex release and successful-channel return are preserved. Detected by static analysis and reviewed with AI-assisted source auditing. Assisted-by: LLM Signed-off-by: Slavin Liu <bolin.liu@seu.edu.cn> Reviewed-by: Frank Li <Frank.Li@nxp.com> Link: https://patch.msgid.link/20260911060902.94153-1-bolin.liu@seu.edu.cn Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions