egl/x11: check the return value of xcb_dri2_get_buffers_reply()
authorEmil Velikov <emil.l.velikov@gmail.com>
Sat, 5 Mar 2016 21:25:44 +0000 (21:25 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 9 Mar 2016 17:25:22 +0000 (17:25 +0000)
commitb9c5c4af6dbfab28b1f0a78e41bffff1b2e06ce9
treeb865f1173d00f7178cf82b20677262122deaf30a
parent373f118c6c750d717fd0727fc3fc191828714c6f
egl/x11: check the return value of xcb_dri2_get_buffers_reply()

... before using it. The function can return NULL, which we should check
prior to refererencing it in the next function(s).

Cc: Fabian Vogt <fvogt@suse.com>
Cc: "11.1 11.2" <mesa-stable@lists.freedesktop.org>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=93667
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Eduardo Lima Mitev <elima@igalia.com>
src/egl/drivers/dri2/platform_x11.c