diff options
Diffstat (limited to 'drivers/net/macvlan.c')
-rw-r--r-- | drivers/net/macvlan.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/macvlan.c b/drivers/net/macvlan.c index 20b7707f38ef..d7dba3f6f763 100644 --- a/drivers/net/macvlan.c +++ b/drivers/net/macvlan.c | |||
@@ -504,7 +504,7 @@ static int macvlan_get_tx_queues(struct net *net, | |||
504 | return 0; | 504 | return 0; |
505 | } | 505 | } |
506 | 506 | ||
507 | static int macvlan_newlink(struct net_device *dev, | 507 | static int macvlan_newlink(struct net *src_net, struct net_device *dev, |
508 | struct nlattr *tb[], struct nlattr *data[]) | 508 | struct nlattr *tb[], struct nlattr *data[]) |
509 | { | 509 | { |
510 | struct macvlan_dev *vlan = netdev_priv(dev); | 510 | struct macvlan_dev *vlan = netdev_priv(dev); |
@@ -515,7 +515,7 @@ static int macvlan_newlink(struct net_device *dev, | |||
515 | if (!tb[IFLA_LINK]) | 515 | if (!tb[IFLA_LINK]) |
516 | return -EINVAL; | 516 | return -EINVAL; |
517 | 517 | ||
518 | lowerdev = __dev_get_by_index(dev_net(dev), nla_get_u32(tb[IFLA_LINK])); | 518 | lowerdev = __dev_get_by_index(src_net, nla_get_u32(tb[IFLA_LINK])); |
519 | if (lowerdev == NULL) | 519 | if (lowerdev == NULL) |
520 | return -ENODEV; | 520 | return -ENODEV; |
521 | 521 | ||