mesa/src/egl
Ian Romanick f730c210b8 egl/dri2: NULL check value returned by dri2_create_surface
dri2_create_surface can fail for a variety of reasons, including bad
input data.  Dereferencing the NULL pointer and crashing is not okay.

Fixes issue identified by Klocwork analysis:

    Pointer 'surf' returned from call to function 'dri2_create_surface'
    at line 285 may be NULL and will be dereferenced at line 291.

NOTE: This is a candidate for the stable branches.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2013-04-12 16:24:48 -07:00
..
docs egl: Mark EGL_MESA_screen_surface as obsolete. 2010-08-31 15:25:22 +08:00
drivers egl/dri2: NULL check value returned by dri2_create_surface 2013-04-12 16:24:48 -07:00
main mesa,gallium,egl,mapi: One definition of C99 inline/__func__ to rule them all. 2013-03-12 22:06:27 +00:00
wayland wayland: Add prime fd passing as a buffer sharing mechanism 2013-03-18 21:15:41 -04:00
Makefile.am automake: Convert src/egl/Makefile to automake. 2012-06-21 09:58:12 -07:00