fix typo
authorMaarten Maathuis <madman2003@gmail.com>
Sun, 22 Jun 2008 16:58:04 +0000 (18:58 +0200)
committerMaarten Maathuis <madman2003@gmail.com>
Sun, 22 Jun 2008 16:58:04 +0000 (18:58 +0200)
linux-core/nv50_crtc.c

index f34e727..887d6ec 100644 (file)
@@ -489,7 +489,7 @@ int nv50_crtc_create(struct drm_device *dev, int index)
        crtc->mode = kzalloc(sizeof(struct nouveau_hw_mode), GFP_KERNEL);
        crtc->native_mode = kzalloc(sizeof(struct nouveau_hw_mode), GFP_KERNEL);
 
-       if (!crtc->mode || crtc->native_mode) {
+       if (!crtc->mode || !crtc->native_mode) {
                rval = -ENOMEM;
                goto out;
        }