Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a9fbf4d5 authored by David Vrabel's avatar David Vrabel Committed by Greg Kroah-Hartman
Browse files

xen/hvc: allow xenboot console to be used again



Commit d0380e6c (early_printk:
consolidate random copies of identical code) added in 3.10 introduced
a check for con->index == -1 in early_console_register().

Initialize index to -1 for the xenboot console so earlyprintk=xen
works again.

Signed-off-by: default avatarDavid Vrabel <david.vrabel@citrix.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Jiri Slaby <jslaby@suse.cz>
Cc: stable@vger.kernel.org
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f8747d4a
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -636,6 +636,7 @@ struct console xenboot_console = {
	.name		= "xenboot",
	.name		= "xenboot",
	.write		= xenboot_write_console,
	.write		= xenboot_write_console,
	.flags		= CON_PRINTBUFFER | CON_BOOT | CON_ANYTIME,
	.flags		= CON_PRINTBUFFER | CON_BOOT | CON_ANYTIME,
	.index		= -1,
};
};
#endif	/* CONFIG_EARLY_PRINTK */
#endif	/* CONFIG_EARLY_PRINTK */