]> git.baikalelectronics.ru Git - kernel.git/commit
init/main.c: Alloc initcall_command_line in do_initcall() and free it
authorMasami Hiramatsu <mhiramat@kernel.org>
Fri, 10 Jan 2020 16:04:31 +0000 (01:04 +0900)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Mon, 13 Jan 2020 18:19:39 +0000 (13:19 -0500)
commita12ad755f81fa45e7b4175676f05c1774f947a49
tree311dd6449f4e3bd31ccd843ca36da0d342a85610
parente0b3839bacc73844c61d303ea2d85a252ba33056
init/main.c: Alloc initcall_command_line in do_initcall() and free it

Since initcall_command_line is used as a temporary buffer,
it could be freed after usage. Allocate it in do_initcall()
and free it after used.

Link: http://lkml.kernel.org/r/157867227145.17873.17513760552008505454.stgit@devnote2
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
init/main.c