Commit 6746ea4d authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

VC: fix bug in vty_init() where vcs_init() was not called early enough.

It was being used before initialized, not nice :(
parent f7f22d4d
......@@ -2602,6 +2602,8 @@ static struct tty_operations con_ops = {
int __init vty_init(void)
{
vcs_init();
console_driver = alloc_tty_driver(MAX_NR_CONSOLES);
if (!console_driver)
panic("Couldn't allocate console driver\n");
......@@ -2629,7 +2631,6 @@ int __init vty_init(void)
#ifdef CONFIG_FRAMEBUFFER_CONSOLE
fb_console_init();
#endif
vcs_init();
return 0;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment