diff options
author | Zhipeng Lu <alexious@zju.edu.cn> | 2023-12-14 18:24:11 +0300 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2023-12-14 23:28:15 +0300 |
commit | ac16667237a82e2597e329eb9bc520d1cf9dff30 (patch) | |
tree | 6b53f57bbc2ecf3eb88ade7a909e6fea7bcfaf60 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 804c49ef30735d70c1df0c58ebec313149a3933c (diff) | |
download | linux-ac16667237a82e2597e329eb9bc520d1cf9dff30.tar.xz |
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/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions