summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2013-08-23 23:46:02 +0300
committerChanho Park <chanho61.park@samsung.com>2014-11-21 19:12:25 +0900
commit3b4c89ce0ce979c5edd377a3e7d5d83cbf490cca (patch)
treeb619ce35e16ef5e7d010234a9eb16f8858b20100
parent724539c7db616fb9a133df07f9ccec5838f669f8 (diff)
downloadlinux-3.10-3b4c89ce0ce979c5edd377a3e7d5d83cbf490cca.tar.gz
linux-3.10-3b4c89ce0ce979c5edd377a3e7d5d83cbf490cca.tar.bz2
linux-3.10-3b4c89ce0ce979c5edd377a3e7d5d83cbf490cca.zip
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 7443412a43a..9ac664e6d73 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);