aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
diff options
context:
space:
mode:
authorZhipeng Lu <[email protected]>2023-12-14 15:24:11 +0000
committerAlex Deucher <[email protected]>2023-12-14 20:28:15 +0000
commitac16667237a82e2597e329eb9bc520d1cf9dff30 (patch)
tree6b53f57bbc2ecf3eb88ade7a909e6fea7bcfaf60 /drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
parentdrm/amd/pm: Remove unneeded semicolon (diff)
downloadkernel-ac16667237a82e2597e329eb9bc520d1cf9dff30.tar.gz
kernel-ac16667237a82e2597e329eb9bc520d1cf9dff30.zip
drm/amd/pm: fix a double-free in si_dpm_init
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 amdgpu_free_extended_power_table again and free those fields again. Thus a double-free is triggered. Fixes: 841686df9f7d ("drm/amdgpu: add SI DPM support (v4)") Signed-off-by: Zhipeng Lu <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c')
0 files changed, 0 insertions, 0 deletions