missing mutex unlock bug
authorRoel Kluin <12o3l@tiscali.nl>
Thu, 25 Oct 2007 00:24:55 +0000 (10:24 +1000)
committerDave Airlie <airlied@optimus.(none)>
Thu, 25 Oct 2007 06:50:23 +0000 (16:50 +1000)
linux-core/sis_mm.c

index 7e162a8e550f19368ebc0b2531df24677c97fc60..9222b08d5922ebc2a09644f1ef309b39b40fe77f 100644 (file)
@@ -133,6 +133,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;
        }