st/dri: NULL check before deref DRI loader .getCapability
authorEmil Velikov <emil.velikov@collabora.com>
Mon, 31 Jul 2017 18:46:22 +0000 (19:46 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 2 Aug 2017 19:42:19 +0000 (20:42 +0100)
commit31a6750988d7dd431f72ff1ff11bfca83bde5d8c
tree8f2a3b2f6fca2454ccf3b7c1d4a2e71b8a44f307
parentdd9eb8db13b85a764d29c0c2fa1b0c416fae7581
st/dri: NULL check before deref DRI loader .getCapability

One could have vX+1 which introduces another entrypoint without
implementing older ones.

v2: Rebase, while keeping loaderPrivate

Fixes: 1bf703e4ea5 ("dri_interface,egl,gallium: only expose RGBA visuals
on Android")
Cc: 17.2 <mesa-stable@lists.freedesktop.org>
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/state_trackers/dri/dri_screen.c