From 24ad7e16cd0fb67c8646e8860cfb382a260a9126 Mon Sep 17 00:00:00 2001 From: Thomas Hellstrom Date: Thu, 25 Feb 2016 11:02:02 +0100 Subject: winsys/svga: Fix an uninitialized return value Reported-by: Brian Paul Signed-off-by: Thomas Hellstrom Reviwed-by: Brian Paul Cc: "11.0 11.1" --- src/gallium/winsys/svga/drm/vmw_surface.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/gallium/winsys/svga/drm/vmw_surface.c') diff --git a/src/gallium/winsys/svga/drm/vmw_surface.c b/src/gallium/winsys/svga/drm/vmw_surface.c index 6c0ad3bbf19..a438b1a7c5b 100644 --- a/src/gallium/winsys/svga/drm/vmw_surface.c +++ b/src/gallium/winsys/svga/drm/vmw_surface.c @@ -170,6 +170,8 @@ vmw_svga_winsys_surface_unmap(struct svga_winsys_context *swc, *rebind = vsrf->rebind; vsrf->rebind = FALSE; vmw_svga_winsys_buffer_unmap(&vsrf->screen->base, vsrf->buf); + } else { + *rebind = FALSE; } pipe_mutex_unlock(vsrf->mutex); } -- cgit v1.2.3