xserver-multidpi/randr
Alex Goins 1179938c17 randr: Check rrPrivKey in RRHasScanoutPixmap()
RRHasScanoutPixmap() is called from xf86CheckHWCursor(), regardless of whether
or not RandR has been initialized.

As mentioned in commit 4226c6d, it's possible that RandR has not been
initialized if the server is configured with Xinerama and there is more than one
X screen. Calling rrGetScrPriv when RandR isn't initialized causes an assertion
failure that aborts the server:

      Xorg: ../include/privates.h:121: dixGetPrivateAddr: Assertion
      key->initialized' failed.

Just as in commit 4226c6d, fix the problem by checking
dixPrivateKeyRegistered(rrPrivKey) before calling rrGetScrPriv.

Signed-off-by: Alex Goins <agoins@nvidia.com>
Acked-by: Olivier Fourdan <ofourdan@redhat.com>
(cherry picked from commit 8eeff5d788)
2020-07-21 16:48:37 -05:00
..
Makefile.am Add RandR leases with modesetting driver support [v6] 2018-02-27 12:39:50 -05:00
meson.build meson: Distribute more SDK headers 2018-04-02 13:42:08 -04:00
randr.c During reset/shutdown, clean up leases in DIX instead of each driver 2018-08-07 12:08:01 -04:00
randrstr.h During reset/shutdown, clean up leases in DIX instead of each driver 2018-08-07 12:08:01 -04:00
rrcrtc.c randr: Check rrPrivKey in RRHasScanoutPixmap() 2020-07-21 16:48:37 -05:00
rrdispatch.c Add RandR leases with modesetting driver support [v6] 2018-02-27 12:39:50 -05:00
rrinfo.c Convert top level extensions to new *allocarray functions 2015-04-21 16:57:08 -07:00
rrlease.c During reset/shutdown, clean up leases in DIX instead of each driver 2018-08-07 12:08:01 -04:00
rrmode.c Add RandR leases with modesetting driver support [v6] 2018-02-27 12:39:50 -05:00
rrmonitor.c rrmonitor: allocate using the correct type 2018-01-31 14:43:56 -05:00
rroutput.c During reset/shutdown, clean up leases in DIX instead of each driver 2018-08-07 12:08:01 -04:00
rrpointer.c randr: Fix logic in RRPointerToNearestCrtc 2014-07-30 14:40:17 -07:00
rrproperty.c Add RandR leases with modesetting driver support [v6] 2018-02-27 12:39:50 -05:00
rrprovider.c randr: Fix a compiler warning on 32-bit. 2018-05-08 11:59:31 -04:00
rrproviderproperty.c Convert top level extensions to new *allocarray functions 2015-04-21 16:57:08 -07:00
rrscreen.c Add RandR leases with modesetting driver support [v6] 2018-02-27 12:39:50 -05:00
rrsdispatch.c Add RandR leases with modesetting driver support [v6] 2018-02-27 12:39:50 -05:00
rrtransform.c randr: Silence -Wshift-negative-value warnings 2015-10-19 11:51:52 -04:00
rrtransform.h Drop trailing whitespaces 2014-11-12 10:25:00 +10:00
rrxinerama.c dispatch: Mark swapped dispatch as _X_COLD 2017-03-01 10:16:20 -05:00