diff options
| author | Zilin Guan <zilin@seu.edu.cn> | 2026-01-29 09:25:32 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2026-02-26 14:59:42 -0800 |
| commit | d1370ef2ecf7d4df25e3e1e430cd191b1e7f8596 (patch) | |
| tree | b8290c57474e374eda2e662ca92c633e4b142a43 /tools/perf/scripts/python | |
| parent | aebd195e93052e33e38cd083133909d63c89735a (diff) | |
drm/amdgpu: Fix memory leak in amdgpu_acpi_enumerate_xcc()
[ Upstream commit c9be63d565789b56ca7b0197e2cb78a3671f95a8 ]
In amdgpu_acpi_enumerate_xcc(), if amdgpu_acpi_dev_init() returns -ENOMEM,
the function returns directly without releasing the allocated xcc_info,
resulting in a memory leak.
Fix this by ensuring that xcc_info is properly freed in the error paths.
Compile tested only. Issue found using a prototype static analysis tool
and code review.
Fixes: 4d5275ab0b18 ("drm/amdgpu: Add parsing of acpi xcc objects")
Reviewed-by: Lijo Lazar <lijo.lazar@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')
0 files changed, 0 insertions, 0 deletions
