summaryrefslogtreecommitdiff
path: root/src/amdgpu_kms.c
diff options
context:
space:
mode:
authorMichel Dänzer <michel.daenzer@amd.com>2018-09-20 17:35:40 +0200
committerMichel Dänzer <michel@daenzer.net>2018-09-26 12:32:14 +0200
commit0cd2c337d2c02b8ec2bd994d6124b4aaaad10741 (patch)
tree88d4bab0b14668082a76df76bcc14d21658d2fe2 /src/amdgpu_kms.c
parentac5b6f96e97aaf95f4e668b4057006b221cffaec (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. Acked-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'src/amdgpu_kms.c')
-rw-r--r--src/amdgpu_kms.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/amdgpu_kms.c b/src/amdgpu_kms.c
index 6017c91..06bba55 100644
--- a/src/amdgpu_kms.c
+++ b/src/amdgpu_kms.c
@@ -2080,7 +2080,7 @@ void AMDGPULeaveVT_KMS(ScrnInfoPtr pScrn)
pixmap_unref_fb(drmmode_crtc->scanout[1].pixmap,
None, pAMDGPUEnt);
} else {
- drmmode_crtc_scanout_free(drmmode_crtc);
+ drmmode_crtc_scanout_free(crtc);
}
}
}