tracing/hist: Fix wrong return value in parse_action_params()
authorZheng Yejian <zhengyejian1@huawei.com>
Wed, 7 Dec 2022 03:46:35 +0000 (11:46 +0800)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Sat, 10 Dec 2022 18:36:04 +0000 (13:36 -0500)
commit2cc6a528882d0e0ccbc1bca5f95b8c963cedac54
treefc33e72f9f2e28cbfe15b9508fa5b3e41b67a269
parent20fb6c997600012209699564a79911584dd5876b
tracing/hist: Fix wrong return value in parse_action_params()

When number of synth fields is more than SYNTH_FIELDS_MAX,
parse_action_params() should return -EINVAL.

Link: https://lore.kernel.org/linux-trace-kernel/20221207034635.2253990-1-zhengyejian1@huawei.com
Cc: <mhiramat@kernel.org>
Cc: <zanussi@kernel.org>
Cc: stable@vger.kernel.org
Fixes: c282a386a397 ("tracing: Add 'onmatch' hist trigger action support")
Signed-off-by: Zheng Yejian <zhengyejian1@huawei.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
kernel/trace/trace_events_hist.c