From f7da34d4b84d11b4f66b64dabf38c9064f1d6de0 Mon Sep 17 00:00:00 2001 From: Frank Richter Date: Wed, 7 Jun 2017 14:40:23 +0200 Subject: [PATCH] Fix a null pointer access --- src/mesa/state_tracker/st_manager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/state_tracker/st_manager.c b/src/mesa/state_tracker/st_manager.c index 204fe97..53fb2e0 100644 --- a/src/mesa/state_tracker/st_manager.c +++ b/src/mesa/state_tracker/st_manager.c @@ -496,7 +496,7 @@ st_context_flush(struct st_context_iface *stctxi, unsigned flags, st_flush(st, fence, pipe_flags); - if ((flags & ST_FLUSH_WAIT) && fence) { + if ((flags & ST_FLUSH_WAIT) && fence && *fence) { st->pipe->screen->fence_finish(st->pipe->screen, NULL, *fence, PIPE_TIMEOUT_INFINITE); st->pipe->screen->fence_reference(st->pipe->screen, fence, NULL); -- 2.11.1.windows.1