projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
591aec1
)
drm/amdgpu: Dereference the ATCS ACPI buffer
author
Prike Liang
<Prike.Liang@amd.com>
Thu, 17 Oct 2024 06:54:31 +0000
(14:54 +0800)
committer
Alex Deucher
<alexander.deucher@amd.com>
Tue, 22 Oct 2024 21:51:19 +0000
(17:51 -0400)
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 <Prike.Liang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c
b/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c
index
1f5a296
..
cce8538
100644
(file)
--- 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;
}