drm/sis: missing mutex unlock in error path.
authorRoel Kluin <12o3l@tiscali.nl>
Mon, 5 Nov 2007 00:53:18 +0000 (10:53 +1000)
committerDave Airlie <airlied@linux.ie>
Mon, 5 Nov 2007 00:53:18 +0000 (10:53 +1000)
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>
drivers/char/drm/sis_mm.c

index 6be1c57..a6b7ccd 100644 (file)
@@ -134,6 +134,7 @@ static int sis_drm_alloc(struct drm_device *dev, struct drm_file *file_priv,
                      dev_priv->agp_initialized)) {
                DRM_ERROR
                    ("Attempt to allocate from uninitialized memory manager.\n");
+               mutex_unlock(&dev->struct_mutex);
                return -EINVAL;
        }