aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/macvlan.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/macvlan.c')
-rw-r--r--drivers/net/macvlan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/macvlan.c b/drivers/net/macvlan.c
index dc74d006e01f..2de073da182c 100644
--- a/drivers/net/macvlan.c
+++ b/drivers/net/macvlan.c
@@ -376,7 +376,7 @@ static int macvlan_newlink(struct net_device *dev,
376 if (!tb[IFLA_LINK]) 376 if (!tb[IFLA_LINK])
377 return -EINVAL; 377 return -EINVAL;
378 378
379 lowerdev = __dev_get_by_index(nla_get_u32(tb[IFLA_LINK])); 379 lowerdev = __dev_get_by_index(dev->nd_net, nla_get_u32(tb[IFLA_LINK]));
380 if (lowerdev == NULL) 380 if (lowerdev == NULL)
381 return -ENODEV; 381 return -ENODEV;
382 382