summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/task-analyzer.py
diff options
context:
space:
mode:
authorMax Zhen <max.zhen@amd.com>2026-03-25 18:06:42 -0700
committerLizhi Hou <lizhi.hou@amd.com>2026-03-26 09:07:21 -0700
commitd946347edc4f0a7b846325323d77e936a4c90d0f (patch)
treea6169451655e1bb4812b7ab4078e28e9a0939b1b /tools/perf/scripts/python/task-analyzer.py
parent3bce3fdd1ff2ba242f76ab66659fff27207299f1 (diff)
accel/amdxdna: Fix leak when pinning ubuf pages
When pin_user_pages_fast() returns fewer pages than requested, the pages that were successfully pinned are not released, leading to a leak. Fix this by unpinning any partially pinned pages before returning failure. Fixes: bd72d4acda10 ("accel/amdxdna: Support user space allocated buffer") Reviewed-by: Mario Limonciello (AMD) <superm1@kernel.org> Signed-off-by: Max Zhen <max.zhen@amd.com> Signed-off-by: Lizhi Hou <lizhi.hou@amd.com> Link: https://patch.msgid.link/20260326010642.2596525-1-lizhi.hou@amd.com
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions