Skip to content
Commit 5362344e authored by Anton Gusev's avatar Anton Gusev Committed by Greg Kroah-Hartman
Browse files

tracing: Fix wrong return in kprobe_event_gen_test.c

[ Upstream commit bc4f359b ]

Overwriting the error code with the deletion result may cause the
function to return 0 despite encountering an error. Commit b111545d


("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/20230131075818.5322-1-aagusev@ispras.ru

Signed-off-by: default avatarAnton Gusev <aagusev@ispras.ru>
Reviewed-by: default avatarSteven Rostedt (Google) <rostedt@goodmis.org>
Acked-by: default avatarMasami Hiramatsu (Google) <mhiramat@kernel.org>
Signed-off-by: default avatarSteven Rostedt (Google) <rostedt@goodmis.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 19c71156
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment