drm/i915: Hold mode_config lock whilst changing mode for lastclose()
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 16 Apr 2012 14:16:42 +0000 (15:16 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 22 Apr 2012 22:39:18 +0000 (15:39 -0700)
commit96f1ffe01afd835e18c6e0a67896376061b33d9d
tree2ef825e1730a365f9118fd8ee39fdbda4c9a4ab5
parentc01a9ac74a8b0e704f2d88c277c2a379849b818d
drm/i915: Hold mode_config lock whilst changing mode for lastclose()

commit c291be9dba370ba696a0d482249a212cf5c15f45 upstream.

Upon lastclose(), we switch back to the fbcon configuration. This
requires taking the mode_config lock in order to serialise the change
with output probing elsewhere.

Reported-by: Oleksij Rempel <bug-track@fisher-privat.net>
References: https://bugs.freedesktop.org/show_bug.cgi?id=48652
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Acked-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/i915/intel_fb.c