diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2013-08-23 23:46:02 +0300 |
---|---|---|
committer | Dave Airlie <airlied@gmail.com> | 2013-08-30 08:58:32 +1000 |
commit | 0adb23709ba9dd87d8bfa1ee349482ac8ec0730a (patch) | |
tree | 00df33e3c7333c5c8e17f72a10ead2d0a6d5a93e | |
parent | 14bbf20c8839eb595753712e15b8786f9cdc5ed8 (diff) |
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.c | 2 |
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); |