mirror of
https://github.com/adulau/aha.git
synced 2025-01-02 14:13:18 +00:00
[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>
This commit is contained in:
parent
8059b2a292
commit
429e9c5eeb
1 changed files with 0 additions and 3 deletions
|
@ -91,9 +91,6 @@ void __init x86_64_start_kernel(char * real_mode_data)
|
||||||
#ifdef CONFIG_SMP
|
#ifdef CONFIG_SMP
|
||||||
cpu_set(0, cpu_online_map);
|
cpu_set(0, cpu_online_map);
|
||||||
#endif
|
#endif
|
||||||
/* default console: */
|
|
||||||
if (!strstr(saved_command_line, "console="))
|
|
||||||
strcat(saved_command_line, " console=tty0");
|
|
||||||
s = strstr(saved_command_line, "earlyprintk=");
|
s = strstr(saved_command_line, "earlyprintk=");
|
||||||
if (s != NULL)
|
if (s != NULL)
|
||||||
setup_early_printk(s);
|
setup_early_printk(s);
|
||||||
|
|
Loading…
Reference in a new issue