winsys/svga: Fix an uninitialized return value
authorThomas Hellstrom <thellstrom@vmware.com>
Thu, 25 Feb 2016 10:02:02 +0000 (11:02 +0100)
committerThomas Hellstrom <thellstrom@vmware.com>
Fri, 4 Mar 2016 12:54:38 +0000 (13:54 +0100)
Reported-by: Brian Paul <brianp@vmware.com>
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviwed-by: Brian Paul <brianp@vmware.com>
Cc: "11.0 11.1" <mesa-stable@lists.freedesktop.org>
src/gallium/winsys/svga/drm/vmw_surface.c

index 6c0ad3bbf1912ea04e358aef4a5002824ccb2337..a438b1a7c5ba4705b0642676c0808b38f877effb 100644 (file)
@@ -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);
 }