Don't take dev->struct_mutex twice in drm_setsareactx.
parent
91990946fa
commit
1814a829eb
|
@ -245,8 +245,6 @@ int drm_setsareactx(struct inode *inode, struct file *filp,
|
||||||
if (!map)
|
if (!map)
|
||||||
goto bad;
|
goto bad;
|
||||||
|
|
||||||
mutex_lock(&dev->struct_mutex);
|
|
||||||
|
|
||||||
ctx_sarea = idr_find(&dev->ctx_idr, request.ctx_id);
|
ctx_sarea = idr_find(&dev->ctx_idr, request.ctx_id);
|
||||||
if (!ctx_sarea)
|
if (!ctx_sarea)
|
||||||
goto bad;
|
goto bad;
|
||||||
|
|
Loading…
Reference in New Issue