xserver/hw/xfree86/drivers/modesetting
Jeffrey Smith 9227237806 modesetting: Do not close uninitialized dri2 screen
If a dri2 screen is not successfully initialized, attempting to close it
results in a null dereference.

Maintain a flag indicating whether the dri2 screen was successfully
initialized, and check it before attempting to close the dri2 screen.

https://bugzilla.redhat.com/show_bug.cgi?id=1485811
https://bugzilla.redhat.com/show_bug.cgi?id=1493805
https://bugzilla.redhat.com/show_bug.cgi?id=1534459
https://bugzilla.redhat.com/show_bug.cgi?id=1541745
https://bugs.freedesktop.org/show_bug.cgi?id=101282

Signed-off-by: Jeff Smith <whydoubt@gmail.com>
2018-02-26 16:41:42 -05:00
..
Makefile.am shadow: Lift 32->24 conversion from modesetting to dix 2016-12-12 14:10:44 -05:00
dri2.c modesetting: Check for -1 before converting to unsigned int. 2018-02-02 15:19:32 -05:00
driver.c modesetting: Do not close uninitialized dri2 screen 2018-02-26 16:41:42 -05:00
driver.h miinitext: General cleanup (v2) 2018-01-22 17:28:12 -05:00
drmmode_display.c xf86-video-modesetting: Update property values at detect and uevent time 2018-01-22 17:22:21 -05:00
drmmode_display.h modesetting: Do not close uninitialized dri2 screen 2018-02-26 16:41:42 -05:00
dumb_bo.c modesetting: Include dix-config.h from dumb_bo.c 2015-05-12 08:02:11 -07:00
dumb_bo.h modesetting: Drop dumb_bo::map_count field and dead unmap code. 2014-12-11 11:26:19 -08:00
meson.build meson: Fix test for whether we've built glamor-EGL. 2017-06-13 10:36:18 -04:00
modesetting.man modesetting: Add more missing options to man page. 2015-08-13 00:36:12 +01:00
pageflip.c modesetting: Drop code for GLAMOR && !GLAMOR_HAS_GBM. 2017-05-18 11:33:05 -04:00
present.c xf86-video-modesetting: Add ms_queue_vblank helper [v3] 2017-10-04 15:17:41 -04:00
vblank.c xf86-video-modesetting: Support new vblank kernel API [v2] 2018-01-22 17:22:21 -05:00