drm/vmwgfx: Fix recently introduced sparse / smatch warnings and errors
[linux-2.6-block.git] / drivers / gpu / drm / vmwgfx / vmwgfx_surface.c
index 3bb3331acdaf9c6f875b1eaead138b3b0e3e142a..979da1c246a543a445257daee03787e794b266a1 100644 (file)
@@ -1117,6 +1117,7 @@ static int vmw_gb_surface_destroy(struct vmw_resource *res)
        if (unlikely(cmd == NULL)) {
                DRM_ERROR("Failed reserving FIFO space for surface "
                          "destruction.\n");
+               mutex_unlock(&dev_priv->binding_mutex);
                return -ENOMEM;
        }