forked from Minki/linux
drm/amdgpu: fix fiji smu fini mem leak
Signed-off-by: Monk Liu <Monk.Liu@amd.com> Acked-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
d1ff53b7c2
commit
e6232effab
@ -1006,6 +1006,10 @@ static int fiji_smu_init(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) {
|
||||
kfree(smumgr->backend);
|
||||
smumgr->backend = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user