Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 275691
b: refs/heads/master
c: 731abb9
h: refs/heads/master
i:
  275689: d683c5f
  275687: a054748
v: v3
  • Loading branch information
Josh Boyer authored and David S. Miller committed Nov 14, 2011
1 parent fbfbf8a commit d5938d9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 898bdf2cb43eb0a962c397eb4dd1aec2c7211be2
refs/heads/master: 731abb9cb27aef6013ce60808a04e04a545f3f4e
8 changes: 7 additions & 1 deletion trunk/net/ipv6/ip6_tunnel.c
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,8 @@ static struct ip6_tnl *ip6_tnl_create(struct net *net, struct ip6_tnl_parm *p)
if ((err = register_netdevice(dev)) < 0)
goto failed_free;

strcpy(t->parms.name, dev->name);

dev_hold(dev);
ip6_tnl_link(ip6n, t);
return t;
Expand Down Expand Up @@ -1407,7 +1409,6 @@ ip6_tnl_dev_init_gen(struct net_device *dev)
struct ip6_tnl *t = netdev_priv(dev);

t->dev = dev;
strcpy(t->parms.name, dev->name);
dev->tstats = alloc_percpu(struct pcpu_tstats);
if (!dev->tstats)
return -ENOMEM;
Expand Down Expand Up @@ -1487,6 +1488,7 @@ static void __net_exit ip6_tnl_destroy_tunnels(struct ip6_tnl_net *ip6n)
static int __net_init ip6_tnl_init_net(struct net *net)
{
struct ip6_tnl_net *ip6n = net_generic(net, ip6_tnl_net_id);
struct ip6_tnl *t = NULL;
int err;

ip6n->tnls[0] = ip6n->tnls_wc;
Expand All @@ -1507,6 +1509,10 @@ static int __net_init ip6_tnl_init_net(struct net *net)
err = register_netdev(ip6n->fb_tnl_dev);
if (err < 0)
goto err_register;

t = netdev_priv(ip6n->fb_tnl_dev);

strcpy(t->parms.name, ip6n->fb_tnl_dev->name);
return 0;

err_register:
Expand Down

0 comments on commit d5938d9

Please sign in to comment.