summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorZilin Guan <zilin@seu.edu.cn>2026-01-29 08:35:15 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-02-26 14:59:42 -0800
commit2fef8c2ac67e7c1b0409d23653300b134c63e54c (patch)
treef44d656b602ddae7eb137efa44355825ed223ab6 /tools/perf/scripts/python/stackcollapse.py
parent9ae85b0c1909b6c6bfd2636b04cdaf7f520bf2b5 (diff)
drm/amdgpu: Fix memory leak in amdgpu_ras_init()
[ Upstream commit ee41e5b63c8210525c936ee637a2c8d185ce873c ] When amdgpu_nbio_ras_sw_init() fails in amdgpu_ras_init(), the function returns directly without freeing the allocated con structure, leading to a memory leak. Fix this by jumping to the release_con label to properly clean up the allocated memory before returning the error code. Compile tested only. Issue found using a prototype static analysis tool and code review. Fixes: fdc94d3a8c88 ("drm/amdgpu: Rework pcie_bif ras sw_init") Reviewed-by: Tao Zhou <tao.zhou1@amd.com> Signed-off-by: Zilin Guan <zilin@seu.edu.cn> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions