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 24f6b27e169f..95814d9747ef 100644
--- a/drivers/net/veth.c
+++ b/drivers/net/veth.c
@@ -340,7 +340,7 @@ static int veth_newlink(struct net *src_net, struct net_device *dev,
340 if (IS_ERR(net)) 340 if (IS_ERR(net))
341 return PTR_ERR(net); 341 return PTR_ERR(net);
342 342
343 peer = rtnl_create_link(src_net, net, ifname, &veth_link_ops, tbp); 343 peer = rtnl_create_link(net, ifname, &veth_link_ops, tbp);
344 if (IS_ERR(peer)) { 344 if (IS_ERR(peer)) {
345 put_net(net); 345 put_net(net);
346 return PTR_ERR(peer); 346 return PTR_ERR(peer);