Commit e6232eff authored by Monk Liu's avatar Monk Liu Committed by Alex Deucher

drm/amdgpu: fix fiji smu fini mem leak

Signed-off-by: default avatarMonk Liu <Monk.Liu@amd.com>
Acked-by: default avatarChristian König <christian.koenig@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent d1ff53b7
...@@ -1006,6 +1006,10 @@ static int fiji_smu_init(struct pp_smumgr *smumgr) ...@@ -1006,6 +1006,10 @@ static int fiji_smu_init(struct pp_smumgr *smumgr)
static int fiji_smu_fini(struct pp_smumgr *smumgr) static int fiji_smu_fini(struct pp_smumgr *smumgr)
{ {
struct fiji_smumgr *priv = (struct fiji_smumgr *)(smumgr->backend);
smu_free_memory(smumgr->device, (void *)priv->header_buffer.handle);
if (smumgr->backend) { if (smumgr->backend) {
kfree(smumgr->backend); kfree(smumgr->backend);
smumgr->backend = NULL; smumgr->backend = 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