Re: [PATCH] tracing: Initialize ret in syscall_enter_define_fields()

From: Peter Zijlstra
Date: Wed Jan 08 2020 - 10:03:19 EST


On Wed, Jan 08, 2020 at 08:57:55AM -0500, Steven Rostedt wrote:
>
> From: "Steven Rostedt (VMware)" <rostedt@xxxxxxxxxxx>
>
> If syscall_enter_define_fields() is called on a system call with no
> arguments, the return code variable "ret" will never get initialized.
> Initialize it to zero.
>
> Link: https://lore.kernel.org/r/0FA8C6E3-D9F5-416D-A1B0-5E4CD583A101@xxxxxx
> Fixes: 04ae87a52074e ("ftrace: Rework event_create_dir()")
> Reported-by: Qian Cai <cai@xxxxxx>
> Signed-off-by: Steven Rostedt (VMware) <rostedt@xxxxxxxxxxx>

Thanks Steve!