xserver/hw
Alex Goins 68d95e759f ramdac: Check ScreenPriv != NULL in xf86ScreenSetCursor()
Similar to change cba5a10f, xf86ScreenSetCursor() would dereference ScreenPriv
without NULL checking it. If Option "SWCursor" is specified, ScreenPriv == NULL.

Without this fix, it is observed that setting Option "SWCursor" "on" on the
modesetting driver in a PRIME configuration will segfault the server.

It is important to return success rather than failure in the instance that
ScreenPriv == NULL and pCurs == NullCursor, because otherwise xf86SetCursor()
can fall into infinite recursion: xf86SetCursor(pCurs) calls
xf86ScreenSetCursor(pCurs), and if FALSE, calls xf86SetCursor(NullCursor). If
xf86ScreenSetCursor(NullCursor) returns FALSE, it calls
xf86SetCursor(NullCursor) again and this repeats forever.

Signed-off-by: Alex Goins <agoins@nvidia.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
2017-10-25 09:52:44 -04:00
..
dmx meson: Don't use '' in link_with, ever 2017-10-24 10:53:56 -04:00
kdrive xephyr: Fix regeneration 2017-05-11 14:13:12 -04:00
vfb test: Add basic SYNC tests. 2017-09-20 13:19:27 -04:00
xfree86 ramdac: Check ScreenPriv != NULL in xf86ScreenSetCursor() 2017-10-25 09:52:44 -04:00
xnest Add a Meson build system alongside autotools. 2017-04-26 15:25:27 -07:00
xquartz XQuartz: Hack around an issue that can occur on macOS due to background apps incorrectly stealing focus 2017-07-20 01:17:40 -07:00
xwayland xwayland: Avoid repeatedly looping through window ancestor chain 2017-09-13 11:51:10 -04:00
xwin xwin: automake: remove unused {SRCS, DEFS}_{NATIVEGDI, PRIMARYFB} 2017-08-22 10:59:41 -04:00
Makefile.am Xwayland DDX 2014-04-03 15:19:22 -07:00
meson.build meson: Move Xvfb build under an option. 2017-09-20 13:19:21 -04:00