From a62554cca967ebb9f263df7b8bca4935facdd701 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Date: Wed, 20 Jan 2016 15:34:24 +0100 Subject: [PATCH] egl: check eglExportDMABUFImageMESA return value MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Found thanks to llvm scan-build. Signed-off-by: Marc-André Lureau --- src/virgl_egl_context.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/virgl_egl_context.c b/src/virgl_egl_context.c index 5306fab..0020f56 100644 --- a/src/virgl_egl_context.c +++ b/src/virgl_egl_context.c @@ -318,6 +318,8 @@ int virgl_egl_get_fd_for_texture(struct virgl_egl *ve, uint32_t tex_id, int *fd) fd, &stride, &offset); + if (!b) + goto out_destroy; #else goto out_destroy; #endif