Merge branch 'linux-4.7' of git://github.com/skeggsb/linux into drm-fixes
authorDave Airlie <airlied@redhat.com>
Fri, 24 Jun 2016 00:16:37 +0000 (10:16 +1000)
committerDave Airlie <airlied@redhat.com>
Fri, 24 Jun 2016 00:16:37 +0000 (10:16 +1000)
* 'linux-4.7' of git://github.com/skeggsb/linux:
  drm/nouveau: fix for disabled fbdev emulation

drivers/gpu/drm/nouveau/nouveau_fbcon.c

index 300ea03..d1f248f 100644 (file)
@@ -552,7 +552,8 @@ nouveau_fbcon_init(struct drm_device *dev)
        if (ret)
                goto fini;
 
-       fbcon->helper.fbdev->pixmap.buf_align = 4;
+       if (fbcon->helper.fbdev)
+               fbcon->helper.fbdev->pixmap.buf_align = 4;
        return 0;
 
 fini: