]> git.baikalelectronics.ru Git - kernel.git/commit
bootconfig: Fix missing return check of xbc_node_compose_key function
authorJulio Faracco <jcfaracco@gmail.com>
Sat, 4 Sep 2021 15:54:38 +0000 (00:54 +0900)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Wed, 8 Sep 2021 19:28:50 +0000 (15:28 -0400)
commitdc2571978277bc215e51fc8313593fc50cf5608e
treede3a0277f302b7a2f6177e55381bf7f78e56764a
parent0e635a266bfc8a6e6815725ac4cc077766a2d3a8
bootconfig: Fix missing return check of xbc_node_compose_key function

The function `xbc_show_list should` handle the keys during the
composition. Even the errors returned by the compose function. Instead
of removing the `ret` variable, it should save the value and show the
exact error. This missing variable is causing a compilation issue also.

Link: https://lkml.kernel.org/r/163077087861.222577.12884543474750968146.stgit@devnote2
Fixes: 022cc3465c1d ("bootconfig: Support mixing a value and subkeys under a key")
Signed-off-by: Julio Faracco <jcfaracco@gmail.com>
Acked-by: Masami Hiramatsu <mhiramat@kernel.org>
Cc: stable@vger.kernel.org
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
tools/bootconfig/main.c