Skip to content

Commit

Permalink
drm/amd/powerplay: fix memory leak of hardcoded pptable
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Eric Huang authored and Alex Deucher committed Nov 2, 2017
1 parent 24738d7 commit 7b38a49
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/gpu/drm/amd/powerplay/amd_powerplay.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 7b38a49

Please sign in to comment.