summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--linux-core/nv50_crtc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-core/nv50_crtc.c b/linux-core/nv50_crtc.c
index f34e7279..887d6ec2 100644
--- a/linux-core/nv50_crtc.c
+++ b/linux-core/nv50_crtc.c
@@ -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;
}