aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines
diff options
context:
space:
mode:
authorAnton Gusev <[email protected]>2023-01-31 10:58:18 +0300
committerSteven Rostedt (Google) <[email protected]>2023-03-19 12:20:48 -0400
commitbc4f359b3b607daac0290d0038561237a86b38cb (patch)
tree266fcfde507458aaaef103cb17f8d2a3c3b5c22f /tools/perf/util/scripting-engines
parentc2679254b9c9980d9045f0f722cf093a2b1f7590 (diff)
tracing: Fix wrong return in kprobe_event_gen_test.c
Overwriting the error code with the deletion result may cause the function to return 0 despite encountering an error. Commit b111545d26c0 ("tracing: Remove the useless value assignment in test_create_synth_event()") solves a similar issue by returning the original error code, so this patch does the same. Found by Linux Verification Center (linuxtesting.org) with SVACE. Link: https://lore.kernel.org/linux-trace-kernel/[email protected] Signed-off-by: Anton Gusev <[email protected]> Reviewed-by: Steven Rostedt (Google) <[email protected]> Acked-by: Masami Hiramatsu (Google) <[email protected]> Signed-off-by: Steven Rostedt (Google) <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines')
0 files changed, 0 insertions, 0 deletions