aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86_64/kernel/head64.c
diff options
context:
space:
mode:
authorAlexander Nyberg <alexn@telia.com>2005-05-01 11:58:52 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-05-01 11:58:52 -0400
commit429e9c5eeb66fc272c15568849ad0b23689a4a06 (patch)
treec8d999f9b0de1e50c5a76ed30d6c6f235106711c /arch/x86_64/kernel/head64.c
parent8059b2a292d59b6d94f9e3af93bf711f161c9476 (diff)
[PATCH] x86_64: saved_command_line overflow fix
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>
Diffstat (limited to 'arch/x86_64/kernel/head64.c')
-rw-r--r--arch/x86_64/kernel/head64.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/arch/x86_64/kernel/head64.c b/arch/x86_64/kernel/head64.c
index 77df2ccb08f1..0f8c78dcd38c 100644
--- a/arch/x86_64/kernel/head64.c
+++ b/arch/x86_64/kernel/head64.c
@@ -91,9 +91,6 @@ void __init x86_64_start_kernel(char * real_mode_data)
91#ifdef CONFIG_SMP 91#ifdef CONFIG_SMP
92 cpu_set(0, cpu_online_map); 92 cpu_set(0, cpu_online_map);
93#endif 93#endif
94 /* default console: */
95 if (!strstr(saved_command_line, "console="))
96 strcat(saved_command_line, " console=tty0");
97 s = strstr(saved_command_line, "earlyprintk="); 94 s = strstr(saved_command_line, "earlyprintk=");
98 if (s != NULL) 95 if (s != NULL)
99 setup_early_printk(s); 96 setup_early_printk(s);