diff options
author | Thomas Graf <tgraf@suug.ch> | 2008-05-22 19:48:59 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-05-22 19:48:59 +0200 |
commit | b9a2f2e450b0f770bb4347ae8d48eb2dea701e24 (patch) | |
tree | 7f2d25b44259bdeb8dd35448bbf16f68aa1d5dd2 /drivers/net/e1000e/netdev.c | |
parent | net: The world is not perfect patch. (diff) | |
download | linux-b9a2f2e450b0f770bb4347ae8d48eb2dea701e24.tar.xz linux-b9a2f2e450b0f770bb4347ae8d48eb2dea701e24.zip |
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>
Diffstat (limited to 'drivers/net/e1000e/netdev.c')
0 files changed, 0 insertions, 0 deletions