提交 7b38a49d 编写于 作者: E Eric Huang 提交者: Alex Deucher

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

Signed-off-by: NEric Huang <JinHuiEric.Huang@amd.com>
Reviewed-by: NRex Zhu <Rex.Zhu@amd.com>
Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册