diff options
author | 2023-12-14 23:24:11 +0800 | |
---|---|---|
committer | 2023-12-14 15:28:15 -0500 | |
commit | ac16667237a82e2597e329eb9bc520d1cf9dff30 (patch) | |
tree | 6b53f57bbc2ecf3eb88ade7a909e6fea7bcfaf60 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | drm/amd/pm: Remove unneeded semicolon (diff) | |
download | wireguard-linux-ac16667237a82e2597e329eb9bc520d1cf9dff30.tar.xz wireguard-linux-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 <alexious@zju.edu.cn>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions