]> git.baikalelectronics.ru Git - kernel.git/commit
bootconfig: Allocate xbc_data inside xbc_init()
authorMasami Hiramatsu <mhiramat@kernel.org>
Thu, 16 Sep 2021 06:23:20 +0000 (15:23 +0900)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Mon, 11 Oct 2021 00:43:42 +0000 (20:43 -0400)
commit4b2aa002f1592b8e097087f97f816b64ebd21b42
treea48e16528af72efc5e487565cde23a1de5a9a38b
parenta7e4a7caa323f6705e8d785f24568ee99889a073
bootconfig: Allocate xbc_data inside xbc_init()

Allocate 'xbc_data' in the xbc_init() so that it does
not need to care about the ownership of the copied
data.

Link: https://lkml.kernel.org/r/163177339986.682366.898762699429769117.stgit@devnote2
Suggested-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
include/linux/bootconfig.h
init/main.c
lib/bootconfig.c
tools/bootconfig/main.c