aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/ipv6/sit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/sit.c b/net/ipv6/sit.c
index afd5605aea7c..19269453a8ea 100644
--- a/net/ipv6/sit.c
+++ b/net/ipv6/sit.c
@@ -1666,6 +1666,7 @@ static int __net_init sit_init_net(struct net *net)
1666 goto err_alloc_dev; 1666 goto err_alloc_dev;
1667 } 1667 }
1668 dev_net_set(sitn->fb_tunnel_dev, net); 1668 dev_net_set(sitn->fb_tunnel_dev, net);
1669 sitn->fb_tunnel_dev->rtnl_link_ops = &sit_link_ops;
1669 /* FB netdevice is special: we have one, and only one per netns. 1670 /* FB netdevice is special: we have one, and only one per netns.
1670 * Allowing to move it to another netns is clearly unsafe. 1671 * Allowing to move it to another netns is clearly unsafe.
1671 */ 1672 */
@@ -1700,7 +1701,6 @@ static void __net_exit sit_exit_net(struct net *net)
1700 1701
1701 rtnl_lock(); 1702 rtnl_lock();
1702 sit_destroy_tunnels(sitn, &list); 1703 sit_destroy_tunnels(sitn, &list);
1703 unregister_netdevice_queue(sitn->fb_tunnel_dev, &list);
1704 unregister_netdevice_many(&list); 1704 unregister_netdevice_many(&list);
1705 rtnl_unlock(); 1705 rtnl_unlock();
1706} 1706}