drm: fix fb-helper vs MST dangling connector ptrs (v2)
authorRob Clark <robdclark@gmail.com>
Mon, 26 Jan 2015 15:11:08 +0000 (10:11 -0500)
committerDave Airlie <airlied@redhat.com>
Fri, 30 Jan 2015 03:04:17 +0000 (13:04 +1000)
VT switch back/forth from console to xserver (for example) has potential
to go horribly wrong if a dynamic DP MST connector ends up in the saved
modeset that is restored when switching back to fbcon.

When removing a dynamic connector, don't forget to clean up the saved
state.

v1: original
v2: null out set->fb if no more connectors to avoid making i915 cranky

Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1184968
Cc: stable@vger.kernel.org #v3.17+
Signed-off-by: Rob Clark <robdclark@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_fb_helper.c

Simple merge