summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/display/modules/hdcp/hdcp1_execution.c
diff options
context:
space:
mode:
authorZhipeng Lu <alexious@zju.edu.cn>2023-12-24 11:22:47 +0300
committerAlex Deucher <alexander.deucher@amd.com>2024-01-06 00:10:43 +0300
commit2f3be3ca779b11c332441b10e00443a2510f4d7b (patch)
tree4256cd46f959f0c765b2025b5ae361bb8f1384f4 /drivers/gpu/drm/amd/display/modules/hdcp/hdcp1_execution.c
parentb1a428b45dc7e47c7acc2ad0d08d8a6dda910c4c (diff)
downloadlinux-2f3be3ca779b11c332441b10e00443a2510f4d7b.tar.xz
drm/amd/pm/smu7: fix a memleak in smu7_hwmgr_backend_init
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: 599a7e9fe1b6 ("drm/amd/powerplay: implement smu7 hwmgr to manager asics with smu ip version 7.") Fixes: 8f0804c6b7d0 ("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>
Diffstat (limited to 'drivers/gpu/drm/amd/display/modules/hdcp/hdcp1_execution.c')
0 files changed, 0 insertions, 0 deletions