Commit 9ecabab8 authored by Masami Hiramatsu's avatar Masami Hiramatsu Committed by Zheng Zengkai
Browse files

bootconfig: init: Fix memblock leak in xbc_make_cmdline()

stable inclusion
from stable-5.10.81
commit f27060e28efcbd939e4ae6cd2ecc2ba7d2f5d93d
bugzilla: 185832 https://gitee.com/openeuler/kernel/issues/I4L9CF

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=f27060e28efcbd939e4ae6cd2ecc2ba7d2f5d93d

--------------------------------

commit 1ae43851 upstream.

Free unused memblock in a error case to fix memblock leak
in xbc_make_cmdline().

Link: https://lkml.kernel.org/r/163177339181.682366.8713781325929549256.stgit@devnote2



Fixes: 51887d03 ("bootconfig: init: Allow admin to use bootconfig for kernel command line")
Signed-off-by: default avatarMasami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: default avatarSteven Rostedt (VMware) <rostedt@goodmis.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>

Signed-off-by: default avatarChen Jun <chenjun102@huawei.com>
Acked-by: default avatarWeilong Chen <chenweilong@huawei.com>

Signed-off-by: default avatarChen Jun <chenjun102@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent b580e95d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment