kernel_optimize_test/tools/bootconfig
Zhen Lei c9cb5837e9 tools/bootconfig: Fix error return code in apply_xbc()
commit e8ba0b2b64126381643bb50df3556b139a60545a upstream.

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: a995e6bc05 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-06-16 12:01:45 +02:00
..
include/linux tools/bootconfig: Remove unneeded error message silencer 2020-02-20 17:53:41 -05:00
samples tools/bootconfig: Add testcases for value override operator 2020-08-03 16:22:29 -04:00
scripts tools/bootconfig: Add tracing_on support to helper scripts 2021-01-19 18:27:19 +01:00
.gitignore .gitignore: add SPDX License Identifier 2020-03-25 11:50:48 +01:00
main.c tools/bootconfig: Fix error return code in apply_xbc() 2021-06-16 12:01:45 +02:00
Makefile bootconfig: Support O=<builddir> option 2020-03-03 17:38:42 -05:00
test-bootconfig.sh tools/bootconfig: Align the bootconfig applied initrd image size to 4 2020-11-19 08:55:44 -05:00