Commit 0adb2370 authored by Dan Carpenter's avatar Dan Carpenter Committed by Dave Airlie

drm/prime: double lock typo

There is a typo so deadlocks on error instead of unlocking.
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: default avatarDave Airlie <airlied@gmail.com>
parent 14bbf20c
......@@ -552,7 +552,7 @@ int drm_gem_prime_fd_to_handle(struct drm_device *dev,
*/
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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment