diff options
author | Michel Dänzer <michel.daenzer@amd.com> | 2018-10-24 18:14:02 +0200 |
---|---|---|
committer | Michel Dänzer <michel.daenzer@amd.com> | 2018-10-24 18:14:02 +0200 |
commit | 86fe8d27b9a3f043e5288ce50eaf1f5fffd24516 (patch) | |
tree | d29c4745bf8bd82cdd940b4ba134af88470597d7 /src/radeon_kms.c | |
parent | f892d3791219d1041e0cbb1b866e15774004aa18 (diff) |
Handle pending scanout update in drmmode_crtc_scanout_free
We have to wait for a pending scanout flip or abort a pending scanout
update, otherwise the corresponding event handler will likely crash
after drmmode_crtc_scanout_free cleaned up the data structures.
Fixes crash after VT switch while dedicated scanout pixmaps are enabled
for any CRTC.
(Ported from amdgpu commit 0cd2c337d2c02b8ec2bd994d6124b4aaaad10741)
Diffstat (limited to 'src/radeon_kms.c')
-rw-r--r-- | src/radeon_kms.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/radeon_kms.c b/src/radeon_kms.c index ae69f335..50c7137c 100644 --- a/src/radeon_kms.c +++ b/src/radeon_kms.c @@ -2614,7 +2614,7 @@ void RADEONLeaveVT_KMS(ScrnInfoPtr pScrn) pixmap_unref_fb(drmmode_crtc->scanout[1].pixmap, None, pRADEONEnt); } else { - drmmode_crtc_scanout_free(drmmode_crtc); + drmmode_crtc_scanout_free(crtc); } } } |