[PATCH] x86_64: saved_command_line overflow fix
authorAlexander Nyberg <alexn@telia.com>
Sun, 1 May 2005 15:58:52 +0000 (08:58 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sun, 1 May 2005 15:58:52 +0000 (08:58 -0700)
This strcpy can run off the end of saved_command_line, and we don't need it any more anyway.

Signed-off-by: Alexander Nyberg <alexn@telia.com>
Cc: Andi Kleen <ak@muc.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/x86_64/kernel/head64.c

index 77df2ccb08f1632a02513030f6996ad2e292bfcf..0f8c78dcd38c4aca360158eb7d72bc85901add83 100644 (file)
@@ -91,9 +91,6 @@ void __init x86_64_start_kernel(char * real_mode_data)
 #ifdef CONFIG_SMP
        cpu_set(0, cpu_online_map);
 #endif
-       /* default console: */
-       if (!strstr(saved_command_line, "console="))
-               strcat(saved_command_line, " console=tty0"); 
        s = strstr(saved_command_line, "earlyprintk=");
        if (s != NULL)
                setup_early_printk(s);