mirror of
https://github.com/torvalds/linux.git
synced 2024-11-24 05:02:12 +00:00
drm/amdgpu: fix tonga 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
e6232effab
commit
86e4cdd675
@ -328,6 +328,11 @@ int tonga_write_smc_sram_dword(struct pp_smumgr *smumgr,
|
||||
|
||||
static int tonga_smu_fini(struct pp_smumgr *smumgr)
|
||||
{
|
||||
struct tonga_smumgr *priv = (struct tonga_smumgr *)(smumgr->backend);
|
||||
|
||||
smu_free_memory(smumgr->device, (void *)priv->smu_buffer.handle);
|
||||
smu_free_memory(smumgr->device, (void *)priv->header_buffer.handle);
|
||||
|
||||
if (smumgr->backend != NULL) {
|
||||
kfree(smumgr->backend);
|
||||
smumgr->backend = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user