xserver/hw/xfree86/drivers/modesetting
Daniel Martin 6804875662 modesetting: Reset output_id if drmModeGetConnector failed
If drmModeGetConnector() fails in drmmode_output_detect(), we have to
reset the output_id to -1 too.

Yet another spot leading to a potential NULL dereference when handling
the mode_output member as output_id was != -1. Though, this case should
be very hard to hit.

Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Daniel Martin <consume.noise@gmail.com>
2017-11-29 14:50:44 -05:00
..
Makefile.am shadow: Lift 32->24 conversion from modesetting to dix 2016-12-12 14:10:44 -05:00
dri2.c xf86-video-modesetting: Add ms_queue_vblank helper [v3] 2017-10-04 15:17:41 -04:00
driver.c modesetting: Remove #ifdefs XF86_PDEV_SERVER_FD 2017-10-20 15:25:45 -04:00
driver.h xf86-video-modesetting: Add ms_queue_vblank helper [v3] 2017-10-04 15:17:41 -04:00
drmmode_display.c modesetting: Reset output_id if drmModeGetConnector failed 2017-11-29 14:50:44 -05:00
drmmode_display.h Use ARRAY_SIZE all over the tree 2017-10-30 13:45:20 -04: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: Fix ms_queue_vblank(flags = MS_QUEUE_RELATIVE) 2017-10-27 10:00:47 -04:00