mesa/src/egl/drivers/dri2
Emil Velikov 72b97ad9b2 egl/drm: ensure the backing gbm is set before using it
Currently, if we error out before gbm_dri is set (say due to a different
name of the backing GBM implementation, or otherwise) the tear down will
trigger a NULL ptr deref and crash out.

Move the gbm_dri initialization as early as possible.

v2: Drop check in dri2_teardowm_drm (Eric)

Reported-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Cc: Christian Gmeiner <christian.gmeiner@gmail.com>
Cc: mesa-stable@lists.freedesktop.org
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
2019-07-31 14:18:12 +01:00
..
egl_dri2.c egl: replace MAYBE_UNUSED with UNUSED 2019-07-31 09:41:05 +01:00
egl_dri2.h egl/android: Update color_buffers querying for buffer age 2019-07-22 12:31:34 -07:00
egl_dri2_fallbacks.h egl: use coherent variable names 2019-02-06 11:53:24 +00:00
platform_android.c egl/android: Update color_buffers querying for buffer age 2019-07-22 12:31:34 -07:00
platform_device.c egl: Let the caller of dri2_create_drawable decide about loaderPrivate. 2019-06-10 11:06:48 +02:00
platform_drm.c egl/drm: ensure the backing gbm is set before using it 2019-07-31 14:18:12 +01:00
platform_surfaceless.c egl: Let the caller of dri2_create_drawable decide about loaderPrivate. 2019-06-10 11:06:48 +02:00
platform_wayland.c egl/wayland: use bitset.h for `formats` bit set 2019-07-01 18:35:54 +01:00
platform_x11.c egl: Only expose 565 pbuffer configs if X can export them as DRI3 images 2019-07-22 16:58:09 -07:00
platform_x11_dri3.c egl: Quiet warning about front buffer rendering for pixmaps/pbuffers 2019-07-22 16:58:09 -07:00
platform_x11_dri3.h