aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char
diff options
context:
space:
mode:
authorRoel Kluin <12o3l@tiscali.nl>2007-11-04 19:53:18 -0500
committerDave Airlie <airlied@linux.ie>2007-11-04 19:53:18 -0500
commit038477aa15df6557ef0c8b2b60523c81eae58ee9 (patch)
treea2f6b76bddc4eff106cb2d0c125fd873f39fdf0f /drivers/char
parent7fc86860cf73e060ab8ed9763010dfe5b5389b1c (diff)
drm/sis: missing mutex unlock in error path.
airlied: separated this out from a patch on lkml. Signed-off-by: Roel Kluin <12o3l@tiscali.nl> Signed-off-by: Dave Airlie <airlied@linux.ie>
Diffstat (limited to 'drivers/char')
-rw-r--r--drivers/char/drm/sis_mm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/char/drm/sis_mm.c b/drivers/char/drm/sis_mm.c
index 6be1c5757580..a6b7ccdaf73d 100644
--- a/drivers/char/drm/sis_mm.c
+++ b/drivers/char/drm/sis_mm.c
@@ -134,6 +134,7 @@ static int sis_drm_alloc(struct drm_device *dev, struct drm_file *file_priv,
134 dev_priv->agp_initialized)) { 134 dev_priv->agp_initialized)) {
135 DRM_ERROR 135 DRM_ERROR
136 ("Attempt to allocate from uninitialized memory manager.\n"); 136 ("Attempt to allocate from uninitialized memory manager.\n");
137 mutex_unlock(&dev->struct_mutex);
137 return -EINVAL; 138 return -EINVAL;
138 } 139 }
139 140