Re: 2.6.9-rc1: selinux/hooks.c: functions returning unassignedvariables

From: David S. Miller
Date: Tue Aug 24 2004 - 13:53:55 EST


On Tue, 24 Aug 2004 11:41:45 -0400
Stephen Smalley <sds@xxxxxxxxxxxxxx> wrote:

> On Tue, 2004-08-24 at 11:33, Adrian Bunk wrote:
> > On Tue, Aug 24, 2004 at 08:19:28AM -0700, John Cherry wrote:
> > >...
> > > security/selinux/hooks.c:2825: warning: `ret' might be used uninitialized in this function
> > > security/selinux/hooks.c:2886: warning: `ret' might be used uninitialized in this function
> >
> >
> > This was
> > [NET]: Add skb_header_pointer, and use it where possible.
> >
> >
> > @Dave:
> > In both functions ret is returned, but line that assigned a value to ret
> > was removed.

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