summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorHongling Zeng <zenghongling@kylinos.cn>2026-07-27 14:29:17 +0800
committerVinod Koul <vkoul@kernel.org>2026-09-09 19:06:49 +0530
commit97e1f00b7bca84c0b7094f65533cb353adba66f2 (patch)
tree4ab86f266b93461ac7f28f82ad738d8b5bc20f1e /tools/perf/scripts/python/export-to-sqlite.py
parent13f2d32a09609d083ace2d589fbdc68e970ae34c (diff)
dmaengine: at_hdmac: Use stored IRQ in error path
When request_irq() succeeds but a later error occurs in at_dma_probe(), the error handling path attempts to free the IRQ by calling platform_get_irq() again instead of using the already stored IRQ number in the local variable 'irq'. Use the stored 'irq' variable directly in free_irq() to make the code clearer and eliminate smatch warnings about potential IRQ leaks. While platform_get_irq() is deterministic, using the stored value makes the error handling more robust against future code changes and clearly shows the relationship between request_irq() and free_irq(). Reviewed-by: Frank Li <Frank.Li@nxp.com> Signed-off-by: Hongling Zeng <zenghongling@kylinos.cn> Link: https://patch.msgid.link/20260727062917.46905-1-zenghongling@kylinos.cn Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions