projects
/
platform
/
kernel
/
linux-rpi3.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3a3e888
)
drm/amdgpu: fix mem leak in pplib/hwmgr
author
Monk Liu
<Monk.Liu@amd.com>
Fri, 27 May 2016 11:09:06 +0000
(19:09 +0800)
committer
Alex Deucher
<alexander.deucher@amd.com>
Thu, 9 Jun 2016 14:49:03 +0000
(10:49 -0400)
Signed-off-by: Monk Liu <Monk.Liu@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c
b/drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c
index
1c48917
..
910d56d
100644
(file)
--- a/
drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c
+++ b/
drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c
@@
-93,6
+93,13
@@
int hwmgr_fini(struct pp_hwmgr *hwmgr)
if (hwmgr == NULL || hwmgr->ps == NULL)
return -EINVAL;
+ /* do hwmgr finish*/
+ kfree(hwmgr->backend);
+
+ kfree(hwmgr->start_thermal_controller.function_list);
+
+ kfree(hwmgr->set_temperature_range.function_list);
+
kfree(hwmgr->ps);
kfree(hwmgr);
return 0;