From: Helge Bahmann Date: Wed, 4 Mar 2009 11:49:14 +0000 (+1000) Subject: drm: fix double lock typo X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=5ad8b7d12605e88d1e532061699102797fdefe08;p=linux-2.6-omap-h63xx.git drm: fix double lock typo [airlied: you shall not retype patches from other trees half asleep] Signed-of-by: Dave Airlie --- diff --git a/drivers/gpu/drm/drm_stub.c b/drivers/gpu/drm/drm_stub.c index 096e2a37446..7c8b15b22bf 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;