diff options
Diffstat (limited to 'drivers/net/veth.c')
-rw-r--r-- | drivers/net/veth.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/veth.c b/drivers/net/veth.c index 3db907cb7d07..b33553b1e19c 100644 --- a/drivers/net/veth.c +++ b/drivers/net/veth.c | |||
@@ -329,7 +329,8 @@ static void veth_setup(struct net_device *dev) | |||
329 | * netlink interface | 329 | * netlink interface |
330 | */ | 330 | */ |
331 | 331 | ||
332 | static int veth_validate(struct nlattr *tb[], struct nlattr *data[]) | 332 | static int veth_validate(struct nlattr *tb[], struct nlattr *data[], |
333 | struct netlink_ext_ack *extack) | ||
333 | { | 334 | { |
334 | if (tb[IFLA_ADDRESS]) { | 335 | if (tb[IFLA_ADDRESS]) { |
335 | if (nla_len(tb[IFLA_ADDRESS]) != ETH_ALEN) | 336 | if (nla_len(tb[IFLA_ADDRESS]) != ETH_ALEN) |
@@ -374,7 +375,7 @@ static int veth_newlink(struct net *src_net, struct net_device *dev, | |||
374 | if (err < 0) | 375 | if (err < 0) |
375 | return err; | 376 | return err; |
376 | 377 | ||
377 | err = veth_validate(peer_tb, NULL); | 378 | err = veth_validate(peer_tb, NULL, extack); |
378 | if (err < 0) | 379 | if (err < 0) |
379 | return err; | 380 | return err; |
380 | 381 | ||