net: fix validate_link_af in rtnetlink core
authorKurt Van Dijck <kurt.van.dijck@eia.be>
Wed, 26 Jan 2011 04:55:24 +0000 (04:55 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 27 Jan 2011 22:39:21 +0000 (14:39 -0800)
commit6d3a9a685465986d7653c5abbc0b24681e7c44d7
tree97bc128d9c8c7001d8eb97fe8a1ed34f755b967e
parent9eb710797a21fa4a9e09ae9c86c4b3ec9d291c2d
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>
net/core/rtnetlink.c