aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPrike Liang <[email protected]>2024-10-17 06:54:31 +0000
committerAlex Deucher <[email protected]>2024-10-22 21:51:19 +0000
commit32e7ee293ff476c67b51be006e986021967bc525 (patch)
treeca32ec71b8652f4edd1c5923afd856e7b488ecdc
parentdrm/amdgpu: Save VCN shared memory with init reset (diff)
downloadkernel-32e7ee293ff476c67b51be006e986021967bc525.tar.gz
kernel-32e7ee293ff476c67b51be006e986021967bc525.zip
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 <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c1
1 files changed, 1 insertions, 0 deletions
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;
}