]> git.baikalelectronics.ru Git - kernel.git/commit
tracing/boot: Fix to check the histogram control param is a leaf node
authorMasami Hiramatsu <mhiramat@kernel.org>
Thu, 9 Sep 2021 13:36:30 +0000 (22:36 +0900)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Thu, 9 Sep 2021 23:14:33 +0000 (19:14 -0400)
commitd406c94880f289195fc62692648103c8bcb31cdb
tree168d6ed46b581ef5ea8e4e1bc087c2000a992e0d
parente75d4520b0a1bed08801a5089b534f7390aa0378
tracing/boot: Fix to check the histogram control param is a leaf node

Since xbc_node_find_child() doesn't ensure the returned node
is a leaf node (key-value pair or do not have subkeys),
use xbc_node_find_value to ensure the histogram control
parameter is a leaf node in trace_boot_compose_hist_cmd().

Link: https://lkml.kernel.org/r/163119459059.161018.18341288218424528962.stgit@devnote2
Fixes: 665d70e774c0 ("tracing/boot: Add per-event histogram action options")
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/trace_boot.c