summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2013-08-24 00:46:02 +0400
committerDave Airlie <airlied@gmail.com>2013-08-30 02:58:32 +0400
commit0adb23709ba9dd87d8bfa1ee349482ac8ec0730a (patch)
tree00df33e3c7333c5c8e17f72a10ead2d0a6d5a93e
parent14bbf20c8839eb595753712e15b8786f9cdc5ed8 (diff)
downloadlinux-0adb23709ba9dd87d8bfa1ee349482ac8ec0730a.tar.xz
drm/prime: double lock typo
There is a typo so deadlocks on error instead of unlocking. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Dave Airlie <airlied@gmail.com>
-rw-r--r--drivers/gpu/drm/drm_prime.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_prime.c b/drivers/gpu/drm/drm_prime.c
index 7ae2bfcab70e..276d470f7b3e 100644
--- a/drivers/gpu/drm/drm_prime.c
+++ b/drivers/gpu/drm/drm_prime.c
@@ -552,7 +552,7 @@ fail:
*/
drm_gem_handle_delete(file_priv, *handle);
out_unlock:
- mutex_lock(&dev->object_name_lock);
+ mutex_unlock(&dev->object_name_lock);
out_put:
dma_buf_put(dma_buf);
mutex_unlock(&file_priv->prime.lock);