Re: [PATCH] drm/amd/pm: fix a double-free in si_dpm_init

2023-12-14 Thread Alex Deucher
Applied. Thanks! On Thu, Dec 14, 2023 at 10:59 AM Zhipeng Lu wrote: > > When the allocation of > adev->pm.dpm.dyn_state.vddc_dependency_on_dispclk.entries fails, > amdgpu_free_extended_power_table is called to free some fields of adev. > However, when the control flow returns to si_dpm_sw_init,

[PATCH] drm/amd/pm: fix a double-free in si_dpm_init

2023-12-14 Thread Zhipeng Lu
When the allocation of adev->pm.dpm.dyn_state.vddc_dependency_on_dispclk.entries fails, amdgpu_free_extended_power_table is called to free some fields of adev. However, when the control flow returns to si_dpm_sw_init, it goes to label dpm_failed and calls si_dpm_fini, which calls