Commit c8140051 authored by Sasha Levin's avatar Sasha Levin

Correct backport for ip6_gre: release cached dst on tunnel removal

There was an error in the backport, which is now fixed.
Reported-by: default avatarFrancesco Ruggeri <fruggeri@aristanetworks.com>
Signed-off-by: default avatarSasha Levin <sasha.levin@oracle.com>
parent e5aa9bc4
...@@ -360,6 +360,7 @@ static void ip6gre_tunnel_uninit(struct net_device *dev) ...@@ -360,6 +360,7 @@ static void ip6gre_tunnel_uninit(struct net_device *dev)
struct ip6_tnl *t = netdev_priv(dev); struct ip6_tnl *t = netdev_priv(dev);
struct ip6gre_net *ign = net_generic(t->net, ip6gre_net_id); struct ip6gre_net *ign = net_generic(t->net, ip6gre_net_id);
ip6gre_tunnel_unlink(ign, t);
ip6_tnl_dst_reset(netdev_priv(dev)); ip6_tnl_dst_reset(netdev_priv(dev));
dev_put(dev); dev_put(dev);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment