mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 08:36:12 -04:00
drm/amd/powerplay: fix memory leak of hardcoded pptable
Signed-off-by: Eric Huang <JinHuiEric.Huang@amd.com> Reviewed-by: Rex Zhu <Rex.Zhu@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
24738d7c87
commit
7b38a49d75
1 changed files with 3 additions and 0 deletions
|
|
@ -78,6 +78,9 @@ static int amd_powerplay_destroy(void *handle)
|
|||
{
|
||||
struct pp_instance *instance = (struct pp_instance *)handle;
|
||||
|
||||
kfree(instance->hwmgr->hardcode_pp_table);
|
||||
instance->hwmgr->hardcode_pp_table = NULL;
|
||||
|
||||
kfree(instance->hwmgr);
|
||||
instance->hwmgr = NULL;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue