Commit a62554cc authored by Marc-André Lureau's avatar Marc-André Lureau Committed by Dave Airlie
Browse files

egl: check eglExportDMABUFImageMESA return value



Found thanks to llvm scan-build.
Signed-off-by: default avatarMarc-André Lureau <marcandre.lureau@gmail.com>
parent 221006de
...@@ -318,6 +318,8 @@ int virgl_egl_get_fd_for_texture(struct virgl_egl *ve, uint32_t tex_id, int *fd) ...@@ -318,6 +318,8 @@ int virgl_egl_get_fd_for_texture(struct virgl_egl *ve, uint32_t tex_id, int *fd)
fd, fd,
&stride, &stride,
&offset); &offset);
if (!b)
goto out_destroy;
#else #else
goto out_destroy; goto out_destroy;
#endif #endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment