aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/vmwgfx
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2014-02-11 11:03:47 -0500
committerThomas Hellstrom <thellstrom@vmware.com>2014-02-12 06:22:25 -0500
commitb2ad9881d6aeec4f3ee527c00fce34442d6d02d3 (patch)
tree52d785c727462fb483b16084a1bb3c9f3aee2ca1 /drivers/gpu/drm/vmwgfx
parent857aea1c5769386b1905bb38fbb4464c800b2df6 (diff)
drm/vmwgfx: unlock on error path in vmw_execbuf_process()
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>
Diffstat (limited to 'drivers/gpu/drm/vmwgfx')
-rw-r--r--drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c b/drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c
index 88a2d56e255c..216ef23e28ff 100644
--- a/drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c
+++ b/drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c
@@ -2469,7 +2469,7 @@ int vmw_execbuf_process(struct drm_file *file_priv,
2469 if (dev_priv->has_mob) { 2469 if (dev_priv->has_mob) {
2470 ret = vmw_rebind_contexts(sw_context); 2470 ret = vmw_rebind_contexts(sw_context);
2471 if (unlikely(ret != 0)) 2471 if (unlikely(ret != 0))
2472 goto out_err; 2472 goto out_unlock_binding;
2473 } 2473 }
2474 2474
2475 cmd = vmw_fifo_reserve(dev_priv, command_size); 2475 cmd = vmw_fifo_reserve(dev_priv, command_size);