Commit 7b38a49d authored by Eric Huang's avatar Eric Huang Committed by Alex Deucher

drm/amd/powerplay: fix memory leak of hardcoded pptable

Signed-off-by: default avatarEric Huang <JinHuiEric.Huang@amd.com>
Reviewed-by: default avatarRex Zhu <Rex.Zhu@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 24738d7c
...@@ -78,6 +78,9 @@ static int amd_powerplay_destroy(void *handle) ...@@ -78,6 +78,9 @@ static int amd_powerplay_destroy(void *handle)
{ {
struct pp_instance *instance = (struct pp_instance *)handle; struct pp_instance *instance = (struct pp_instance *)handle;
kfree(instance->hwmgr->hardcode_pp_table);
instance->hwmgr->hardcode_pp_table = NULL;
kfree(instance->hwmgr); kfree(instance->hwmgr);
instance->hwmgr = NULL; instance->hwmgr = NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment