diff options
author | Thomas Hellstrom <thellstrom@vmware.com> | 2016-02-25 11:02:02 +0100 |
---|---|---|
committer | Thomas Hellstrom <thellstrom@vmware.com> | 2016-03-04 13:54:38 +0100 |
commit | 24ad7e16cd0fb67c8646e8860cfb382a260a9126 (patch) | |
tree | f75005ce272d01adea54b9be18084c0b0f71e107 /src/gallium/winsys | |
parent | 9ec246796f95996868d61ffc9b52a2c1811bb66d (diff) | |
download | external_mesa3d-24ad7e16cd0fb67c8646e8860cfb382a260a9126.zip external_mesa3d-24ad7e16cd0fb67c8646e8860cfb382a260a9126.tar.gz external_mesa3d-24ad7e16cd0fb67c8646e8860cfb382a260a9126.tar.bz2 |
winsys/svga: Fix an uninitialized return value
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>
Diffstat (limited to 'src/gallium/winsys')
-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 6c0ad3b..a438b1a 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); } |