]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - glsdk/libdrm.git/commitdiff
Don't take dev->struct_mutex twice in drm_setsareactx.
authorKristian Høgsberg <krh@redhat.com>
Tue, 3 Jul 2007 14:31:46 +0000 (10:31 -0400)
committerKristian Høgsberg <krh@redhat.com>
Tue, 3 Jul 2007 14:31:46 +0000 (10:31 -0400)
linux-core/drm_context.c

index 101a298c85f42d16cef48b62c1877a5f35157680..ff08e8096ed3f277f3615da369074eca781b9d75 100644 (file)
@@ -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;