Re: [PATCH] tracing: Fix wrong return in kprobe_event_gen_test.c

From: Steven Rostedt
Date: Tue Jan 31 2023 - 10:15:48 EST


On Tue, 31 Jan 2023 10:58:18 +0300
Anton Gusev <aagusev@xxxxxxxxx> wrote:

> 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.
>
> Signed-off-by: Anton Gusev <aagusev@xxxxxxxxx>

Reviewed-by: Steven Rostedt (Google) <rostedt@xxxxxxxxxxx>

Thanks Anton!

-- Steve