diff options
-rw-r--r-- | net/ipv6/ip6_tunnel.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/ipv6/ip6_tunnel.c b/net/ipv6/ip6_tunnel.c index 33d2a0e6712..cb7e2ded6f0 100644 --- a/net/ipv6/ip6_tunnel.c +++ b/net/ipv6/ip6_tunnel.c | |||
@@ -1312,6 +1312,8 @@ ip6_tnl_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) | |||
1312 | } | 1312 | } |
1313 | ip6_tnl_parm_from_user(&p1, &p); | 1313 | ip6_tnl_parm_from_user(&p1, &p); |
1314 | t = ip6_tnl_locate(net, &p1, 0); | 1314 | t = ip6_tnl_locate(net, &p1, 0); |
1315 | } else { | ||
1316 | memset(&p, 0, sizeof(p)); | ||
1315 | } | 1317 | } |
1316 | if (t == NULL) | 1318 | if (t == NULL) |
1317 | t = netdev_priv(dev); | 1319 | t = netdev_priv(dev); |