Skip to content
Commit aa464957 authored by Lang Yu's avatar Lang Yu Committed by Alex Deucher
Browse files

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

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>
parent 17c65d6f
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