mirror of
https://github.com/torvalds/linux.git
synced 2026-12-03 03:52:37 +00:00
When the console is in VT_AUTO+KD_GRAPHICS mode, switching to the SUSPEND_CONSOLE fails, resulting in vt_waitactive() waiting indefinitely or until the task is interrupted. This patch tests if a console switch can occur in set_console() and returns early if a console switch is not possible. [[email protected]: cleanup] Signed-off-by: Andrew Johnson <[email protected]> Acked-by: Pavel Machek <[email protected]> Cc: "Antonino A. Daplas" <[email protected]> Cc: "Rafael J. Wysocki" <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>