Message ID | 20190130141203.21855-2-seth.forshee@canonical.com |
---|---|
State | New |
Headers | show |
Series | ip6_gre: fix tunnel list corruption for x-netns | expand |
diff --git a/net/ipv6/ip6_gre.c b/net/ipv6/ip6_gre.c index 14f66046bd72..17192f9443d5 100644 --- a/net/ipv6/ip6_gre.c +++ b/net/ipv6/ip6_gre.c @@ -1495,9 +1495,9 @@ static int ip6gre_changelink(struct net_device *dev, struct nlattr *tb[], struct nlattr *data[], struct netlink_ext_ack *extack) { - struct ip6gre_net *ign = net_generic(dev_net(dev), ip6gre_net_id); + struct ip6_tnl *t = netdev_priv(dev); + struct ip6gre_net *ign = net_generic(t->net, ip6gre_net_id); struct __ip6_tnl_parm p; - struct ip6_tnl *t; t = ip6gre_changelink_common(dev, tb, data, &p, extack); if (IS_ERR(t))