Skip to content
Commit 541d54e4 authored by Zhen Ni's avatar Zhen Ni 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
smu_v13_0_5_init_smc_tables(), but not freed in
smu_v13_0_5_fini_smc_tables(). This may cause memory leaks, fix it.

Reviewed-by: default avatarEvan Quan <evan.quan@amd.com>
Signed-off-by: default avatarZhen Ni <nizhen@uniontech.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 5afb7652
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