Thomas Graf b9a2f2e450 netlink: Fix nla_parse_nested_compat() to call nla_parse() directly
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@suug.ch>
Acked-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
2008-05-22 10:48:59 -07:00
..
2008-05-14 19:23:27 -05:00
2007-10-10 16:53:11 -07:00
2007-10-10 16:53:56 -07:00
2008-03-27 17:53:31 -07:00
2008-02-29 11:46:17 -08:00
2008-03-28 16:28:36 -07:00
2007-10-07 23:44:17 -07:00
2008-05-12 03:29:11 -07:00