aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--init/main.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/init/main.c b/init/main.c
index 01573fdfa186..f865261fb096 100644
--- a/init/main.c
+++ b/init/main.c
@@ -355,9 +355,11 @@ static inline void smp_prepare_cpus(unsigned int maxcpus) { }
355 */ 355 */
356static void __init setup_command_line(char *command_line) 356static void __init setup_command_line(char *command_line)
357{ 357{
358 saved_command_line = alloc_bootmem(strlen (boot_command_line)+1); 358 saved_command_line =
359 initcall_command_line = alloc_bootmem(strlen (boot_command_line)+1); 359 memblock_virt_alloc(strlen(boot_command_line) + 1, 0);
360 static_command_line = alloc_bootmem(strlen (command_line)+1); 360 initcall_command_line =
361 memblock_virt_alloc(strlen(boot_command_line) + 1, 0);
362 static_command_line = memblock_virt_alloc(strlen(command_line) + 1, 0);
361 strcpy (saved_command_line, boot_command_line); 363 strcpy (saved_command_line, boot_command_line);
362 strcpy (static_command_line, command_line); 364 strcpy (static_command_line, command_line);
363} 365}