[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190314181908.0af526af@gandalf.local.home>
Date: Thu, 14 Mar 2019 18:19:08 -0400
From: Steven Rostedt <rostedt@...dmis.org>
To: Frank Rowand <frowand.list@...il.com>
Cc: linux-kernel@...r.kernel.org, Ingo Molnar <mingo@...nel.org>,
Tom Zanussi <tom.zanussi@...ux.intel.com>,
Ravi Bangoria <ravi.bangoria@...ux.vnet.ibm.com>,
Masami Hiramatsu <mhiramat@...nel.org>
Subject: Re: [PATCH] tracing: initialize variable in create_dyn_event()
On Thu, 14 Mar 2019 14:05:02 -0700
Frank Rowand <frowand.list@...il.com> wrote:
> Hi Steve,
>
> Ping.
Thanks, this got buried.
> > static int create_dyn_event(int argc, char **argv)
> > {
> > struct dyn_event_operations *ops;
> > - int ret;
> > + int ret = 0;
Probably should be ret = -ENODEV;
As if ret doesn't get set, then no dynamic code has been registered,
and something is truly wrong.
-- Steve
> >
> > if (argv[0][0] == '-' || argv[0][0] == '!')
> > return dyn_event_release(argc, argv, NULL);
> >
Powered by blists - more mailing lists