main
Maarten Maathuis 2008-06-22 18:58:04 +02:00
parent e67cd7dda9
commit 7c9551a464
1 changed files with 1 additions and 1 deletions

View 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;
}