|
@@ -288,8 +288,7 @@ static struct ip6_tnl *vti6_locate(struct net *net, struct __ip6_tnl_parm *p,
|
|
static void vti6_dev_uninit(struct net_device *dev)
|
|
static void vti6_dev_uninit(struct net_device *dev)
|
|
{
|
|
{
|
|
struct ip6_tnl *t = netdev_priv(dev);
|
|
struct ip6_tnl *t = netdev_priv(dev);
|
|
- struct net *net = dev_net(dev);
|
|
|
|
- struct vti6_net *ip6n = net_generic(net, vti6_net_id);
|
|
|
|
|
|
+ struct vti6_net *ip6n = net_generic(t->net, vti6_net_id);
|
|
|
|
|
|
if (dev == ip6n->fb_tnl_dev)
|
|
if (dev == ip6n->fb_tnl_dev)
|
|
RCU_INIT_POINTER(ip6n->tnls_wc[0], NULL);
|
|
RCU_INIT_POINTER(ip6n->tnls_wc[0], NULL);
|