summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichel Dänzer <michel.daenzer@amd.com>2018-12-18 16:42:53 +0100
committerMichel Dänzer <michel@daenzer.net>2018-12-19 18:56:37 +0100
commit233a0be82d5c317e58002f4daf836d4f95048465 (patch)
tree033974b15eabb48d2e35aa9170fdaf8188f2be52 /src
parentd4eab5d108c4569f3a9e2892704ea89b7ee797b6 (diff)
Don't clear info->flip_window in present_unflip
present_unflip can get called between present_check_flip and present_flip, in which case the latter would pass a NULL WindowPtr to the former, resulting in a crash. present_flip should never get called for a window which has already been destroyed, so there's no need to clear info->flip_window. Bugzilla: https://bugs.freedesktop.org/109067 Fixes: 2d18b37159edc "Check last flip window instead of screen root before flipping" Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'src')
-rw-r--r--src/amdgpu_present.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/amdgpu_present.c b/src/amdgpu_present.c
index f3af045..4c6866b 100644
--- a/src/amdgpu_present.c
+++ b/src/amdgpu_present.c
@@ -389,7 +389,6 @@ amdgpu_present_unflip(ScreenPtr screen, uint64_t event_id)
FLIP_ASYNC : FLIP_VSYNC;
int i;
- info->flip_window = NULL;
info->drmmode.vrr_flipping = FALSE;
amdgpu_present_set_screen_vrr(scrn);