aboutsummaryrefslogtreecommitdiffstats
path: root/net/ieee802154
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2017-06-25 17:56:01 -0400
committerDavid S. Miller <davem@davemloft.net>2017-06-26 23:13:22 -0400
commita8b8a889e369de82f295f55455adb4a7c31c458c (patch)
tree102e9d3c011ac2f5fdc8992107c1124067684c02 /net/ieee802154
parentad744b223c521b1e01752a826774545c3e3acd8e (diff)
net: add netlink_ext_ack argument to rtnl_link_ops.validate
Add support for extended error reporting. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net> Acked-by: David Ahern <dsahern@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ieee802154')
-rw-r--r--net/ieee802154/6lowpan/core.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ieee802154/6lowpan/core.c b/net/ieee802154/6lowpan/core.c
index 1a4c585f3950..de2661cd0328 100644
--- a/net/ieee802154/6lowpan/core.c
+++ b/net/ieee802154/6lowpan/core.c
@@ -111,7 +111,8 @@ static void lowpan_setup(struct net_device *ldev)
111 ldev->features |= NETIF_F_NETNS_LOCAL; 111 ldev->features |= NETIF_F_NETNS_LOCAL;
112} 112}
113 113
114static int lowpan_validate(struct nlattr *tb[], struct nlattr *data[]) 114static int lowpan_validate(struct nlattr *tb[], struct nlattr *data[],
115 struct netlink_ext_ack *extack)
115{ 116{
116 if (tb[IFLA_ADDRESS]) { 117 if (tb[IFLA_ADDRESS]) {
117 if (nla_len(tb[IFLA_ADDRESS]) != IEEE802154_ADDR_LEN) 118 if (nla_len(tb[IFLA_ADDRESS]) != IEEE802154_ADDR_LEN)