Skip to content
Commit 222cebd9 authored by Lang Yu's avatar Lang Yu Committed by Greg Kroah-Hartman
Browse files

drm/amd/pm: fix a potential gpu_metrics_table memory leak



[ Upstream commit aa464957 ]

Memory is allocated for gpu_metrics_table in renoir_init_smc_tables(),
but not freed in int smu_v12_0_fini_smc_tables(). Free it!

Fixes: 95868b85 ("drm/amd/powerplay: add Renoir support for gpu metrics export")

Signed-off-by: default avatarLang Yu <lang.yu@amd.com>
Reviewed-by: default avatarLijo Lazar <lijo.lazar@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 74dc97df
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