summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@redhat.com>2007-07-03 10:31:46 -0400
committerKristian Høgsberg <krh@redhat.com>2007-07-03 10:31:46 -0400
commit1814a829eb65ee53a14fa9b53fc6f3a4196dcaa5 (patch)
treea8bd89857cdbbe9e850050e0661558d3b79bc80b
parent91990946fa3f7e8e725af18d1f3a63e0c7892308 (diff)
Don't take dev->struct_mutex twice in drm_setsareactx.
-rw-r--r--linux-core/drm_context.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/linux-core/drm_context.c b/linux-core/drm_context.c
index 101a298c..ff08e809 100644
--- a/linux-core/drm_context.c
+++ b/linux-core/drm_context.c
@@ -245,8 +245,6 @@ int drm_setsareactx(struct inode *inode, struct file *filp,
if (!map)
goto bad;
- mutex_lock(&dev->struct_mutex);
-
ctx_sarea = idr_find(&dev->ctx_idr, request.ctx_id);
if (!ctx_sarea)
goto bad;