egl: check for driver_configs in dri2_display_release
authorTapani Pälli <tapani.palli@intel.com>
Fri, 12 May 2017 09:18:32 +0000 (12:18 +0300)
committerEmil Velikov <emil.l.velikov@gmail.com>
Mon, 29 May 2017 15:49:49 +0000 (16:49 +0100)
commit12196d1b76898bc51ad55e2ad69689df35b29494
tree3bcd6e94bfd3b25e8cfe4580f917e981f2146160
parent628af2bc9690f42957f9799dfc0dbd0614d38d4c
egl: check for driver_configs in dri2_display_release

With later commits we'll split and reuse the destroy side of the
function for the initialize_foo error path.

In such cases, driver_configs may be NULL leading to a crash.

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
[Emil Velikov: reword commit message]
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Tested-by: Rob Herring <robh@kernel.org>
src/egl/drivers/dri2/egl_dri2.c