Subject: Re: [NETLINK]: Fix nla_parse_nested_compat() to call nla_parse() directly

From: Stephen Hemminger <[email-masked]>
Date: Thu, 22 May 2008 11:02:58 -0700

On Thu, 22 May 2008 10:49:13 -0700 (PDT)
David Miller <[email-masked]> wrote:

> From: Patrick McHardy <[email-masked]>
> 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 <[email-masked]>
> > 
> > Looks good to me, thanks for fixing this Thomas.
> 
> Patch applied, thanks everyone.

Pls, push this to stable as well.