Messages in this thread | | | Date | Tue, 31 Jan 2023 10:13:00 -0500 | From | Steven Rostedt <> | Subject | Re: [PATCH] tracing: Fix wrong return in kprobe_event_gen_test.c |
| |
On Tue, 31 Jan 2023 10:58:18 +0300 Anton Gusev <aagusev@ispras.ru> 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@ispras.ru>
Reviewed-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Thanks Anton!
-- Steve
| |