xserver/present
Fredrik Höglund 23d52080a5 present: Don't stash the MSC value when present_get_ust_msc fails
Otherwise we stash an uninitalized value, and later use it to compute
the msc_offset for the window.  Also initialize ust and crtc_msc so we
never use uninitalized values when present_get_ust_msc fails.

This fixes clients getting stuck waiting indefinitely for an idle
event when a CRTC is turned off.

Signed-off-by: Fredrik Höglund <fredrik@kde.org>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
(cherry picked from commit f6ce23fbfc)
2015-10-26 11:40:10 -04:00
..
Makefile.am present: Add Present extension 2013-10-31 16:59:18 -07:00
present.c present: Don't stash the MSC value when present_get_ust_msc fails 2015-10-26 11:40:10 -04:00
present.h glx/present: Only send GLX_BufferSwapComplete for PresentCompleteKindPixmap 2014-09-11 18:19:41 -07:00
present_event.c glx/present: Only send GLX_BufferSwapComplete for PresentCompleteKindPixmap 2014-09-11 18:19:41 -07:00
present_fake.c Replace 'pointer' type with 'void *' 2014-01-12 10:24:11 -08:00
present_fence.c present: Block for wait_fence in present_execute 2013-11-20 13:12:30 -08:00
present_notify.c present: Add Present extension 2013-10-31 16:59:18 -07:00
present_priv.h present: Make window MSC offset 0 initially 2014-07-31 00:03:53 -07:00
present_request.c present: unvalidated lengths in Present extension procs [CVE-2014-8103 2/2] 2014-12-08 18:09:48 -08:00
present_screen.c present: Make window MSC offset 0 initially 2014-07-31 00:03:53 -07:00
presentext.h present: Add Present extension 2013-10-31 16:59:18 -07:00