From: Thomas Graf Date: Thu, 22 May 2008 17:48:59 +0000 (-0700) Subject: netlink: Fix nla_parse_nested_compat() to call nla_parse() directly X-Git-Tag: v2.6.26-rc4~7^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b9a2f2e450b0f770bb4347ae8d48eb2dea701e24;p=pandora-kernel.git 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 Acked-by: Patrick McHardy Signed-off-by: David S. Miller --- Reading git-diff-tree failed