Commit c0961c18 authored by Jeff Dike's avatar Jeff Dike Committed by Linus Torvalds

[PATCH] uml: initialize a list head

We need to initialize lists properly.
Signed-off-by: default avatarJeff Dike <jdike@addtoit.com>
Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 60678bbc
...@@ -69,6 +69,7 @@ static struct line_driver driver = { ...@@ -69,6 +69,7 @@ static struct line_driver driver = {
.write_irq = CONSOLE_WRITE_IRQ, .write_irq = CONSOLE_WRITE_IRQ,
.write_irq_name = "console-write", .write_irq_name = "console-write",
.mc = { .mc = {
.list = LIST_HEAD_INIT(driver.mc.list),
.name = "con", .name = "con",
.config = con_config, .config = con_config,
.get_config = con_get_config, .get_config = con_get_config,
......
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