egl/dri2: Check return value of __DRI2fence::create_fence()
authorChad Versace <chad.versace@intel.com>
Wed, 6 May 2015 02:05:20 +0000 (19:05 -0700)
committerChad Versace <chad.versace@intel.com>
Wed, 6 May 2015 14:55:41 +0000 (07:55 -0700)
commitb0f410a2a05e046c31c32e169b9463cb6b4af8ae
tree81d108f2cc8169798039af5151e35ea568ccd48d
parentb8a1495106a8b70e9026b7798a5df2fb9737c55e
egl/dri2: Check return value of __DRI2fence::create_fence()

If it returns NULL, then return early with an error.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/egl/drivers/dri2/egl_dri2.c