vt: Initialize conswitchp to dummy_con if unset
authorArvind Sankar <nivedita@alum.mit.edu>
Wed, 18 Dec 2019 21:44:44 +0000 (16:44 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Jan 2020 14:29:15 +0000 (15:29 +0100)
commit805ece2a58085c33c0c087be049b77e94c12080a
treef8f9827b067127e0ccbd5ae1a2d96a81ae7cb0d6
parente018bc28b031348ff763b89b48b3b96f1f0e466b
vt: Initialize conswitchp to dummy_con if unset

If the arch setup code hasn't initialized conswitchp yet, set it to
dummy_con in con_init. This will allow us to drop the dummy_con
initialization that's done in almost every architecture.

Signed-off-by: Arvind Sankar <nivedita@alum.mit.edu>
Link: https://lore.kernel.org/r/20191218214506.49252-3-nivedita@alum.mit.edu
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/vt/vt.c