OpenCloudOS-Kernel/tools/bootconfig
Steven Rostedt (VMware) 9d82ccda2b tools/bootconfig: Fix apply_xbc() to return zero on success
The return of apply_xbc() returns the result of the last write() call, which
is not what is expected. It should only return zero on success.

Link: https://lore.kernel.org/r/20200508093059.GF9365@kadam

Fixes: 8842604446 ("tools/bootconfig: Fix resource leak in apply_xbc()")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Masami Hiramatsu <mhiramat@kernel.org>
Tested-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
2020-05-11 17:00:26 -04:00
..
include/linux tools/bootconfig: Remove unneeded error message silencer 2020-02-20 17:53:41 -05:00
samples bootconfig: Prohibit re-defining value on same key 2020-02-21 09:59:19 -05:00
.gitignore .gitignore: add SPDX License Identifier 2020-03-25 11:50:48 +01:00
Makefile bootconfig: Support O=<builddir> option 2020-03-03 17:38:42 -05:00
main.c tools/bootconfig: Fix apply_xbc() to return zero on success 2020-05-11 17:00:26 -04:00
test-bootconfig.sh bootconfig: Support O=<builddir> option 2020-03-03 17:38:42 -05:00