Re: [PATCH] drm/amd/pm/smu7: fix a memleak in smu7_hwmgr_backend_init

2024-01-03 Thread Alex Deucher
Applied. Thanks! On Mon, Dec 25, 2023 at 5:18 AM Zhipeng Lu wrote: > > 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_

[PATCH] drm/amd/pm/smu7: fix a memleak in smu7_hwmgr_backend_init

2023-12-24 Thread Zhipeng Lu
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