Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8a258353 authored by Maarten Lankhorst's avatar Maarten Lankhorst Committed by Ben Skeggs
Browse files

drm/nouveau: fix null pointer dereference in poll_changed



Fixes vgaswitcheroo on a card without display.

Signed-off-by: default avatarMaarten Lankhorst <maarten.lankhorst@canonical.com>
Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent 8ff86056
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -398,6 +398,7 @@ void
nouveau_fbcon_output_poll_changed(struct drm_device *dev)
{
	struct nouveau_drm *drm = nouveau_drm(dev);
	if (drm->fbcon)
		drm_fb_helper_hotplug_event(&drm->fbcon->helper);
}