linux/drivers/gpu/drm/amd/pm
Zhipeng Lu e0fc60a44d drm/amd/pm/smu7: fix a memleak in smu7_hwmgr_backend_init
[ Upstream commit 2f3be3ca77 ]

The hwmgr->backend, (i.e. data) allocated by kzalloc is not freed in
the error-handling paths of smu7_get_evv_voltages and
smu7_update_edc_leakage_table. However, it did be freed in the
error-handling of phm_initializa_dynamic_state_adjustment_rule_settings,
by smu7_hwmgr_backend_fini. So the lack of free in smu7_get_evv_voltages
and smu7_update_edc_leakage_table is considered a memleak in this patch.

Fixes: 599a7e9fe1 ("drm/amd/powerplay: implement smu7 hwmgr to manager asics with smu ip version 7.")
Fixes: 8f0804c6b7 ("drm/amd/pm: add edc leakage controller setting")
Signed-off-by: Zhipeng Lu <alexious@zju.edu.cn>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2024-01-25 15:45:08 -08:00
..
inc drm/amdgpu: optimize RLC powerdown notification on Vangogh 2023-11-29 17:55:47 -05:00
legacy-dpm drm/amd/pm: fix a double-free in amdgpu_parse_extended_power_table 2024-01-25 15:45:05 -08:00
powerplay drm/amd/pm/smu7: fix a memleak in smu7_hwmgr_backend_init 2024-01-25 15:45:08 -08:00
swsmu drm/amd/pm: Use gpu_metrics_v1_5 for SMUv13.0.6 2024-01-04 09:51:24 -05:00
amdgpu_dpm.c drm/amdgpu: optimize RLC powerdown notification on Vangogh 2023-11-29 17:55:47 -05:00
amdgpu_dpm_internal.c drm/amd/pm: add missing prototypes to amdgpu_dpm_internal 2022-02-07 18:03:50 -05:00
amdgpu_pm.c drm/amd/pm: Add mem_busy_percent for GCv9.4.3 apu 2024-01-04 09:50:03 -05:00
Makefile drm/amd/swsmu: add smu14 ip support 2023-10-13 10:59:55 -04:00