diff options
| author | Rosen Penev <rosenp@gmail.com> | 2026-09-09 16:49:24 -0700 |
|---|---|---|
| committer | Vinod Koul <vkoul@kernel.org> | 2026-09-10 19:32:33 +0530 |
| commit | 5d5f4b3407d6ec86e76d094c332301135f493636 (patch) | |
| tree | 9a4d260128d5374487609f00c473cf2ac945a7d8 /tools/perf/scripts/python | |
| parent | db1a748a3509da959c547689af40e8a064a19c6b (diff) | |
| download | linux-next-5d5f4b3407d6ec86e76d094c332301135f493636.tar.gz linux-next-5d5f4b3407d6ec86e76d094c332301135f493636.zip | |
dmaengine: mv_xor: return descriptor to free pool on io_win failure
When mv_xor_prep_dma_xor() allocates a descriptor slot and then
mv_xor_add_io_win() fails in the source-address loop, the slot
stays on the allocated list and is never reclaimed, leaking a
descriptor resource.
Return the slot to the free pool under the channel lock before
returning NULL on failure.
Assisted-by: opencode:big-pickle
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Link: https://patch.msgid.link/20260909234924.103418-1-rosenp@gmail.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
