提交 0adb2370 编写于 作者: D Dan Carpenter 提交者: Dave Airlie

drm/prime: double lock typo

There is a typo so deadlocks on error instead of unlocking.
Signed-off-by: NDan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: NDave Airlie <airlied@gmail.com>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册