st/gbm: don't segfault if the fail to create the screen
authorEmil Velikov <emil.l.velikov@gmail.com>
Wed, 23 Jul 2014 17:08:46 +0000 (18:08 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 30 Jul 2014 15:33:09 +0000 (16:33 +0100)
commite3a3dbe9407bdbf9693349900936d5349cb8bb75
tree93e32a81a9777daa4d0439b1e3ca9aa21bc2e641
parentd93ae21939a0b12e32263dfc14ad672c78d1c2b2
st/gbm: don't segfault if the fail to create the screen

Whenever dd_create_screen/pipe_loader_* fails, gdrm->dev may be NULL.
Thus peeking inside the struct will lead to a crash.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
src/gallium/state_trackers/gbm/gbm_drm.c