we should not be unlocking this here
authorDave Airlie <airlied@redhat.com>
Tue, 18 Dec 2007 08:16:51 +0000 (19:16 +1100)
committerDave Airlie <airlied@redhat.com>
Tue, 18 Dec 2007 08:16:51 +0000 (19:16 +1100)
linux-core/drm_crtc.c

index 9a840ea..405b54b 100644 (file)
@@ -165,7 +165,6 @@ struct drm_framebuffer *drm_framebuffer_create(struct drm_device *dev)
 
        /* Limit to single framebuffer for now */
        if (dev->mode_config.num_fb > 1) {
-               mutex_unlock(&dev->mode_config.mutex);
                DRM_ERROR("Attempt to add multiple framebuffers failed\n");
                return NULL;
        }