summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2013-08-23 20:46:02 (GMT)
committerInki Dae <inki.dae@samsung.com>2014-10-15 11:05:13 (GMT)
commit0da5fe0852bcc78fb6fbece4d2b458c791f7fc14 (patch)
treee7b08982f05d3ef93a8fabaae29e08f6ad8fa36c
parente1e4dcaf1f07cf78c437d6c7fced235a8f7ba9d7 (diff)
downloadlinux-3.10-0da5fe0852bcc78fb6fbece4d2b458c791f7fc14.zip
linux-3.10-0da5fe0852bcc78fb6fbece4d2b458c791f7fc14.tar.gz
linux-3.10-0da5fe0852bcc78fb6fbece4d2b458c791f7fc14.tar.bz2
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 7443412..9ac664e 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);