aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_reset.c
diff options
context:
space:
mode:
authorWenjing Liu <[email protected]>2024-03-04 23:16:43 +0000
committerAlex Deucher <[email protected]>2024-03-22 19:50:44 +0000
commit621cf07a3f25337b17becd4c9486308c0988ea49 (patch)
treef7d44ac944297815b7cdfbb6723d356e561e9fe7 /drivers/gpu/drm/amd/amdgpu/amdgpu_reset.c
parentdrm/amdgpu/vpe: power on vpe when hw_init (diff)
downloadkernel-621cf07a3f25337b17becd4c9486308c0988ea49.tar.gz
kernel-621cf07a3f25337b17becd4c9486308c0988ea49.zip
drm/amd/display: fix a bug to dereference already freed old current state memory
[why] During minimal transition commit, the base state could be freed if it is current state. This is because after committing minimal transition state, the current state will be swapped to the minimal transition state and the old current state will be released. the release could cause the old current state's memory to be freed. However dc will derefernce this memory when release minimal transition state. Therefore, we need to retain the old current state until we release minimal transition state. Cc: Mario Limonciello <[email protected]> Cc: Alex Deucher <[email protected]> Cc: [email protected] Reviewed-by: Josip Pavic <[email protected]> Acked-by: Wayne Lin <[email protected]> Signed-off-by: Wenjing Liu <[email protected]> Tested-by: Daniel Wheeler <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_reset.c')
0 files changed, 0 insertions, 0 deletions