[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20080522110258.4cd23801@extreme>
Date: Thu, 22 May 2008 11:02:58 -0700
From: Stephen Hemminger <shemminger@...tta.com>
To: David Miller <davem@...emloft.net>
Cc: kaber@...sh.net, tgraf@...g.ch, davej@...emonkey.org.uk,
netdev@...r.kernel.org
Subject: Re: [NETLINK]: Fix nla_parse_nested_compat() to call nla_parse()
directly
On Thu, 22 May 2008 10:49:13 -0700 (PDT)
David Miller <davem@...emloft.net> wrote:
> From: Patrick McHardy <kaber@...sh.net>
> Date: Thu, 22 May 2008 14:45:23 +0200
>
> > Thomas Graf wrote:
> > > The purpose of nla_parse_nested_compat() is to parse attributes
> > > which contain a struct followed by a stream of nested attributes.
> > > So far, it called nla_parse_nested() to parse the stream of
> > > nested attributes which was wrong, as nla_parse_nested() expects
> > > a container attribute as data which holds the attribute stream.
> > > It needs to call nla_parse() directly while pointing at the
> > > next possible alignment point after the struct in the beginning
> > > of the attribute.
> > >
> > > With this patch, I can no longer reproduce the reported leftover
> > > warnings.
> > >
> > > Signed-off-by: Thomas Graf <tgraf@...g.ch>
> >
> > Looks good to me, thanks for fixing this Thomas.
>
> Patch applied, thanks everyone.
Pls, push this to stable as well.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists