diff options
author | Kurt Van Dijck <kurt.van.dijck@eia.be> | 2011-01-26 07:55:24 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-01-28 01:39:21 +0300 |
commit | 6d3a9a685465986d7653c5abbc0b24681e7c44d7 (patch) | |
tree | 97bc128d9c8c7001d8eb97fe8a1ed34f755b967e /net | |
parent | 9eb710797a21fa4a9e09ae9c86c4b3ec9d291c2d (diff) | |
download | linux-6d3a9a685465986d7653c5abbc0b24681e7c44d7.tar.xz |
net: fix validate_link_af in rtnetlink core
I'm testing an API that uses IFLA_AF_SPEC attribute.
In the rtnetlink core , the set_link_af() member
of the rtnl_af_ops struct receives the nested attribute
(as I expected), but the validate_link_af() member
receives the parent attribute.
IMO, this patch fixes this.
Signed-off-by: Kurt Van Dijck <kurt.van.dijck@eia.be>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/core/rtnetlink.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c index 750db57f3bb3..31459ef13ca2 100644 --- a/net/core/rtnetlink.c +++ b/net/core/rtnetlink.c @@ -1121,8 +1121,7 @@ static int validate_linkmsg(struct net_device *dev, struct nlattr *tb[]) return -EOPNOTSUPP; if (af_ops->validate_link_af) { - err = af_ops->validate_link_af(dev, - tb[IFLA_AF_SPEC]); + err = af_ops->validate_link_af(dev, af); if (err < 0) return err; } |