diff options
author | huaibin Wang <huaibin.wang@6wind.com> | 2015-08-25 16:20:34 +0200 |
---|---|---|
committer | Sasha Levin <sasha.levin@oracle.com> | 2015-10-27 09:32:59 -0400 |
commit | adda5e353608e7ad825cd1d4edca724b644f55f6 (patch) | |
tree | b7f289b5a7d55d8f80b2969421e01c98aec64838 /net | |
parent | 2fb9a494b9f29080f504af3d50ac2feab15dbad5 (diff) | |
download | lwn-adda5e353608e7ad825cd1d4edca724b644f55f6.tar.gz lwn-adda5e353608e7ad825cd1d4edca724b644f55f6.zip |
ip6_gre: release cached dst on tunnel removal
[ Upstream commit d4257295ba1b389c693b79de857a96e4b7cd8ac0 ]
When a tunnel is deleted, the cached dst entry should be released.
This problem may prevent the removal of a netns (seen with a x-netns IPv6
gre tunnel):
unregister_netdevice: waiting for lo to become free. Usage count = 3
CC: Dmitry Kozlov <xeb@mail.ru>
Fixes: c12b395a4664 ("gre: Support GRE over IPv6")
Signed-off-by: huaibin Wang <huaibin.wang@6wind.com>
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
Diffstat (limited to 'net')
-rw-r--r-- | net/ipv6/ip6_gre.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/ip6_gre.c b/net/ipv6/ip6_gre.c index 0e32d2e1bdbf..28d7a245ea34 100644 --- a/net/ipv6/ip6_gre.c +++ b/net/ipv6/ip6_gre.c @@ -360,7 +360,7 @@ static void ip6gre_tunnel_uninit(struct net_device *dev) struct ip6_tnl *t = netdev_priv(dev); struct ip6gre_net *ign = net_generic(t->net, ip6gre_net_id); - ip6gre_tunnel_unlink(ign, t); + ip6_tnl_dst_reset(netdev_priv(dev)); dev_put(dev); } |