aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/veth.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/veth.c')
-rw-r--r--drivers/net/veth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/veth.c b/drivers/net/veth.c
index ca1c6893b80..2c86a4459d8 100644
--- a/drivers/net/veth.c
+++ b/drivers/net/veth.c
@@ -345,7 +345,7 @@ static int veth_newlink(struct net_device *dev,
345 else 345 else
346 snprintf(ifname, IFNAMSIZ, DRV_NAME "%%d"); 346 snprintf(ifname, IFNAMSIZ, DRV_NAME "%%d");
347 347
348 peer = rtnl_create_link(ifname, &veth_link_ops, tbp); 348 peer = rtnl_create_link(dev->nd_net, ifname, &veth_link_ops, tbp);
349 if (IS_ERR(peer)) 349 if (IS_ERR(peer))
350 return PTR_ERR(peer); 350 return PTR_ERR(peer);
351 351