From 5d87a7c894d8327491be804fee8005fadfaeb3f1 Mon Sep 17 00:00:00 2001 From: Daniel Czarnowski Date: Thu, 11 Feb 2016 14:03:58 +0200 Subject: [PATCH] egl_dri2: NULL check for xcb_dri2_get_buffers_reply() Without the check, unsuccessful xcb_dri2_get_buffers_reply(...) causes segmentation fault in dri2_get_buffers. Signed-off-by: Matt Roper Reviewed-by: Emil Velikov Cc: "11.0 11.1" drawable, count, count, attachments); reply = xcb_dri2_get_buffers_reply (dri2_dpy->conn, cookie, NULL); + if (reply == NULL) + return NULL; buffers = xcb_dri2_get_buffers_buffers (reply); if (buffers == NULL) return NULL; -- 2.30.2