LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Harvey Harrison <harvey.harrison@gmail.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: rathamahata@php4.ru, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] befs: fix sparse warning in linuxvfs.c
Date: Fri, 15 Feb 2008 13:23:46 -0800 [thread overview]
Message-ID: <1203110626.15275.42.camel@brick> (raw)
In-Reply-To: <20080215131922.0d0dcb08.akpm@linux-foundation.org>
On Fri, 2008-02-15 at 13:19 -0800, Andrew Morton wrote:
> On Fri, 15 Feb 2008 10:46:04 -0800
> Harvey Harrison <harvey.harrison@gmail.com> wrote:
>
> > Use link as the variable name to avoid shadowing the arg.
> >
> > fs/befs/linuxvfs.c:492:8: warning: symbol 'p' shadows an earlier one
> > fs/befs/linuxvfs.c:488:77: originally declared here
> >
> > Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
> > ---
> > This should be checked in case there is a latent bug here. Should it
> > be the arg *p getting freed, or the local var *p that was shadowing
> > it?
> >
>
> The code looks OK - the name was allocated in befs_follow_link() and was
> saved away with nd_set_link().
OK, that's as far as I got as well, but don't know the area well enough
to be sure, hence the caveat.
Harvey
prev parent reply other threads:[~2008-02-15 21:23 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-15 18:46 Harvey Harrison
2008-02-15 21:19 ` Andrew Morton
2008-02-15 21:23 ` Harvey Harrison [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1203110626.15275.42.camel@brick \
--to=harvey.harrison@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rathamahata@php4.ru \
--subject='Re: [PATCH] befs: fix sparse warning in linuxvfs.c' \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).