drm/vmwgfx: unlock on error path in vmw_execbuf_process()
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 11 Feb 2014 16:03:47 +0000 (19:03 +0300)
committerThomas Hellstrom <thellstrom@vmware.com>
Wed, 12 Feb 2014 11:22:25 +0000 (12:22 +0100)
There is a missing unlock on error here.

Fixes: 30f82d816d2d ('drm/vmwgfx: Reemit context bindings when necessary v2')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c

index 88a2d56..216ef23 100644 (file)
@@ -2469,7 +2469,7 @@ int vmw_execbuf_process(struct drm_file *file_priv,
        if (dev_priv->has_mob) {
                ret = vmw_rebind_contexts(sw_context);
                if (unlikely(ret != 0))
-                       goto out_err;
+                       goto out_unlock_binding;
        }
 
        cmd = vmw_fifo_reserve(dev_priv, command_size);