]> git.baikalelectronics.ru Git - kernel.git/commit
tools/bootconfig: Fix error return code in apply_xbc()
authorZhen Lei <thunder.leizhen@huawei.com>
Sat, 8 May 2021 03:42:16 +0000 (11:42 +0800)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Tue, 8 Jun 2021 20:43:59 +0000 (16:43 -0400)
commit7615a40bf7d5e0a3f712d6af2973184e215dfc44
treeecdc69560de9e31dc1fc75c08cf8fd02b7162c19
parentc54d307ae8ea340d52d8a28b01227b3c31a41c0e
tools/bootconfig: Fix error return code in apply_xbc()

Fix to return a negative error code from the error handling case instead
of 0, as done elsewhere in this function.

Link: https://lkml.kernel.org/r/20210508034216.2277-1-thunder.leizhen@huawei.com
Fixes: 1425b135bd77 ("tools/bootconfig: Fix to check the write failure correctly")
Reported-by: Hulk Robot <hulkci@huawei.com>
Acked-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
tools/bootconfig/main.c