diff options
| author | Golla Nagendra <nagendra.golla@amd.com> | 2026-08-14 10:26:10 +0530 |
|---|---|---|
| committer | Vinod Koul <vkoul@kernel.org> | 2026-09-09 19:06:49 +0530 |
| commit | 4ea99b14b3bd955d768666941e2e03ba186b52f5 (patch) | |
| tree | cd5d458879090054c48fc8fc60672437b9b81ff3 /tools/perf/scripts/python/syscall-counts.py | |
| parent | f2f44b952ea6e0c600e92ea21fcaa83cafeedf6e (diff) | |
dmaengine: zynqmp_dma: Free sw_desc_pool on desc_pool_v alloc failure
In zynqmp_dma_alloc_chan_resources(), sw_desc_pool is allocated before
desc_pool_v. If dma_alloc_coherent() for desc_pool_v fails, the function
currently exits through the runtime PM rollback path but leaves the
already allocated sw_desc_pool behind.
Add a dedicated err_free_sw_desc_pool label for the desc_pool_v failure
path, free sw_desc_pool there, then fall through to err_pm for
pm_runtime_put_autosuspend().
This keeps the error unwind symmetric and avoids leaking the software
descriptor pool on coherent descriptor allocation failure.
Fixes: b0cc417c1637 ("dmaengine: Add Xilinx zynqmp dma engine driver support")
Signed-off-by: Golla Nagendra <nagendra.golla@amd.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Link: https://patch.msgid.link/20260814045616.1661199-3-nagendra.golla@amd.com
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
