summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorThomas Hellstrom <[email protected]>2016-02-25 11:02:02 +0100
committerEmil Velikov <[email protected]>2016-03-12 01:16:48 +0000
commit7155c2441e5915f99cc8df1cdf5fffa9c9117b5a (patch)
tree2f9b7e8d42e5c910d0ab5764d127e0d52eea0d8b /src
parent9f21fdd8e697a1a0868f4ec4573235325294b7b3 (diff)
winsys/svga: Fix an uninitialized return value
Reported-by: Brian Paul <[email protected]> Signed-off-by: Thomas Hellstrom <[email protected]> Reviwed-by: Brian Paul <[email protected]> Cc: "11.0 11.1" <[email protected]> (cherry picked from commit 24ad7e16cd0fb67c8646e8860cfb382a260a9126)
Diffstat (limited to 'src')
-rw-r--r--src/gallium/winsys/svga/drm/vmw_surface.c2
1 files changed, 2 insertions, 0 deletions
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);
}