]> err.no Git - linux-2.6/commitdiff
[PATCH] uml: initialize a list head
authorJeff Dike <jdike@addtoit.com>
Sat, 10 Feb 2007 09:44:11 +0000 (01:44 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Sun, 11 Feb 2007 18:51:22 +0000 (10:51 -0800)
We need to initialize lists properly.

Signed-off-by: Jeff Dike <jdike@addtoit.com>
Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/um/drivers/stdio_console.c

index 8dccdd193d94a6212d11eb5ac29f724bf1e70e51..7ff0b0fc37e73eff2875fe4ae0db633570181b66 100644 (file)
@@ -69,6 +69,7 @@ static struct line_driver driver = {
        .write_irq              = CONSOLE_WRITE_IRQ,
        .write_irq_name         = "console-write",
        .mc  = {
+               .list           = LIST_HEAD_INIT(driver.mc.list),
                .name           = "con",
                .config         = con_config,
                .get_config     = con_get_config,