lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1307069135.3667.33.camel@gandalf.stny.rr.com>
Date:	Thu, 02 Jun 2011 22:45:35 -0400
From:	Steven Rostedt <rostedt@...dmis.org>
To:	GuoWen Li <guowen.li.linux@...il.com>
Cc:	linux-kernel@...r.kernel.org
Subject: Re: [PATCH] Fix compiler warning in ftrace.c

On Wed, 2011-06-01 at 19:18 +0800, GuoWen Li wrote:
> kernel/trace/ftrace.c: In function ‘ftrace_regex_write.clone.15’:
> kernel/trace/ftrace.c:2743:6: warning: ‘ret’ may be used uninitialized in this 
> function

Thanks, but this isn't just a fix of a warning, it fixes an actual bug.

-- Steve

> 
> Signed-off-by: GuoWen Li
> ---
>  kernel/trace/ftrace.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c
> index 1ee417f..204b3eb 100644
> --- a/kernel/trace/ftrace.c
> +++ b/kernel/trace/ftrace.c
> @@ -2740,7 +2740,7 @@ static int ftrace_process_regex(struct ftrace_hash 
> *hash,
>  {
>         char *func, *command, *next = buff;
>         struct ftrace_func_command *p;
> -       int ret;
> +       int ret = -EINVAL;
>  
>         func = strsep(&next, ":");


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ