summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/drm_stub.c
diff options
context:
space:
mode:
authorHelge Bahmann <helge.bahmann@secunet.com>2009-03-04 21:49:14 +1000
committerDave Airlie <airlied@linux.ie>2009-03-04 21:49:14 +1000
commit5ad8b7d12605e88d1e532061699102797fdefe08 (patch)
treefd930824114374337f22f2fae55fc28067655401 /drivers/gpu/drm/drm_stub.c
parentfec6c6fec3e20637bee5d276fb61dd8b49a3f9cc (diff)
downloadop-kernel-dev-5ad8b7d12605e88d1e532061699102797fdefe08.zip
op-kernel-dev-5ad8b7d12605e88d1e532061699102797fdefe08.tar.gz
drm: fix double lock typo
[airlied: you shall not retype patches from other trees half asleep] Signed-of-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/drm_stub.c')
-rw-r--r--drivers/gpu/drm/drm_stub.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_stub.c b/drivers/gpu/drm/drm_stub.c
index 096e2a3..7c8b15b 100644
--- a/drivers/gpu/drm/drm_stub.c
+++ b/drivers/gpu/drm/drm_stub.c
@@ -168,7 +168,7 @@ int drm_setmaster_ioctl(struct drm_device *dev, void *data,
file_priv->minor->master != file_priv->master) {
mutex_lock(&dev->struct_mutex);
file_priv->minor->master = drm_master_get(file_priv->master);
- mutex_lock(&dev->struct_mutex);
+ mutex_unlock(&dev->struct_mutex);
}
return 0;
OpenPOWER on IntegriCloud