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 6be1c575758063ff0721bf723544ff3d3d418a63..a6b7ccdaf73deae309099868a1a21a7e13f94a7a 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;
        }