summaryrefslogtreecommitdiffstats
path: root/src/gallium/winsys/svga/drm
diff options
context:
space:
mode:
authorThomas Hellstrom <[email protected]>2016-02-25 11:02:02 +0100
committerThomas Hellstrom <[email protected]>2016-03-04 13:54:38 +0100
commit24ad7e16cd0fb67c8646e8860cfb382a260a9126 (patch)
treef75005ce272d01adea54b9be18084c0b0f71e107 /src/gallium/winsys/svga/drm
parent9ec246796f95996868d61ffc9b52a2c1811bb66d (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]>
Diffstat (limited to 'src/gallium/winsys/svga/drm')
-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);
}