diff options
author | Thomas Hellstrom <[email protected]> | 2016-02-25 11:02:02 +0100 |
---|---|---|
committer | Thomas Hellstrom <[email protected]> | 2016-03-04 13:54:38 +0100 |
commit | 24ad7e16cd0fb67c8646e8860cfb382a260a9126 (patch) | |
tree | f75005ce272d01adea54b9be18084c0b0f71e107 | |
parent | 9ec246796f95996868d61ffc9b52a2c1811bb66d (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]>
-rw-r--r-- | src/gallium/winsys/svga/drm/vmw_surface.c | 2 |
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); } |