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)
commit2148f18fdb45f31ca269a7787fbc24053cd42e70
tree7bc8e24bf64b1e8027cf3bdb4959a17c9697b485
parent1c999c47a9f1772e6d53028b6bf965c6ddb743bd
drm: fix fb-helper vs MST dangling connector ptrs (v2)

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