diff options
Diffstat (limited to 'net/ipv4/ipmr.c')
-rw-r--r-- | net/ipv4/ipmr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/ipmr.c b/net/ipv4/ipmr.c index 036598835c63..b8b4b497fb57 100644 --- a/net/ipv4/ipmr.c +++ b/net/ipv4/ipmr.c | |||
@@ -125,7 +125,7 @@ struct net_device *ipmr_new_tunnel(struct vifctl *v) | |||
125 | { | 125 | { |
126 | struct net_device *dev; | 126 | struct net_device *dev; |
127 | 127 | ||
128 | dev = __dev_get_by_name("tunl0"); | 128 | dev = __dev_get_by_name(&init_net, "tunl0"); |
129 | 129 | ||
130 | if (dev) { | 130 | if (dev) { |
131 | int err; | 131 | int err; |
@@ -149,7 +149,7 @@ struct net_device *ipmr_new_tunnel(struct vifctl *v) | |||
149 | 149 | ||
150 | dev = NULL; | 150 | dev = NULL; |
151 | 151 | ||
152 | if (err == 0 && (dev = __dev_get_by_name(p.name)) != NULL) { | 152 | if (err == 0 && (dev = __dev_get_by_name(&init_net, p.name)) != NULL) { |
153 | dev->flags |= IFF_MULTICAST; | 153 | dev->flags |= IFF_MULTICAST; |
154 | 154 | ||
155 | in_dev = __in_dev_get_rtnl(dev); | 155 | in_dev = __in_dev_get_rtnl(dev); |