From: Prike Liang Date: Thu, 17 Oct 2024 06:54:31 +0000 (+0800) Subject: drm/amdgpu: Dereference the ATCS ACPI buffer X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=32e7ee293ff476c67b51be006e986021967bc525;p=users%2Fjedix%2Flinux-maple.git drm/amdgpu: Dereference the ATCS ACPI buffer Need to dereference the atcs acpi buffer after the method is executed, otherwise it will result in a memory leak. Signed-off-by: Prike Liang Reviewed-by: Alex Deucher Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c index 1f5a296f5ed2..cce85389427f 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c @@ -800,6 +800,7 @@ int amdgpu_acpi_power_shift_control(struct amdgpu_device *adev, return -EIO; } + kfree(info); return 0; }