summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorWentao Liang <vulab@iscas.ac.cn>2026-09-16 09:54:32 +0000
committerAlex Deucher <alexander.deucher@amd.com>2026-09-23 15:53:05 -0400
commita997baa61179b450bd55c4810c7ccfed3b753a54 (patch)
treed8d5c96b8167cee77bd7ced98f2324998947e5b6 /tools/perf/scripts/python
parentaea841bc62a76242396610d22d8ff40c13065f64 (diff)
downloadlinux-next-a997baa61179b450bd55c4810c7ccfed3b753a54.tar.gz
linux-next-a997baa61179b450bd55c4810c7ccfed3b753a54.zip
drm/amdgpu: Fix acpi device leak in amdgpu_acpi_enumerate_xcc()
amdgpu_acpi_enumerate_xcc() looks up each XCC ACPI device with acpi_dev_get_first_match_dev(), which takes a reference to the device. The reference is dropped with acpi_dev_put() after the XCC info is initialized, but if the kzalloc_obj() allocation of the XCC info fails the function returns -ENOMEM without releasing the reference, leaking the last reference to the ACPI device. Drop the ACPI device reference on the allocation failure path before returning. Fixes: 4d5275ab0b18 ("drm/amdgpu: Add parsing of acpi xcc objects") Reviewed-by: Lijo Lazar <lijo.lazar@amd.com> Signed-off-by: Wentao Liang <vulab@iscas.ac.cn> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> (cherry picked from commit 9211ef48b31ec66999cf55e04d0cbc60cd855fd5) Cc: stable@vger.kernel.org
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions