Message ID | 20210329192522.155336-1-eric.dumazet@gmail.com |
---|---|
State | New |
Headers | show |
Series | [net-next] sit: proper dev_{hold|put} in ndo_[un]init methods | expand |
diff --git a/net/ipv6/sit.c b/net/ipv6/sit.c index b9bd2723f89a314d15c8c4ea785e84530c8acb95..488d3181aec3a5558dbefb6145400627535df761 100644 --- a/net/ipv6/sit.c +++ b/net/ipv6/sit.c @@ -218,8 +218,6 @@ static int ipip6_tunnel_create(struct net_device *dev) ipip6_tunnel_clone_6rd(dev, sitn); - dev_hold(dev); - ipip6_tunnel_link(sitn, t); return 0; @@ -1456,7 +1454,7 @@ static int ipip6_tunnel_init(struct net_device *dev) dev->tstats = NULL; return err; } - + dev_hold(dev); return 0; }