diff --git a/net/ipv6/sit.c b/net/ipv6/sit.c index 75c2b56f3eeb..96b442ea904a 100644 --- a/net/ipv6/sit.c +++ b/net/ipv6/sit.c @@ -1368,6 +1368,7 @@ static int ipip6_tunnel_init(struct net_device *dev) tunnel->dst_cache = alloc_percpu(struct ip_tunnel_dst); if (!tunnel->dst_cache) { free_percpu(dev->tstats); + dev->tstats = NULL; return -ENOMEM; }