drm/nouveau: fix null pointer dereference in poll_changed
authorMaarten Lankhorst <maarten.lankhorst@canonical.com>
Tue, 23 Jul 2013 13:45:11 +0000 (15:45 +0200)
committerBen Skeggs <bskeggs@redhat.com>
Tue, 30 Jul 2013 03:04:19 +0000 (13:04 +1000)
commit8a258353ed46fa9886bff42e869067336eeb1db6
tree2457f5769f325747d6e7d244c987f0f86566d88b
parent8ff860564076f99aeb4f6d35dcb6ea008624e64e
drm/nouveau: fix null pointer dereference in poll_changed

Fixes vgaswitcheroo on a card without display.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@canonical.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_fbcon.c