Re: RTNL assert

David S. Miller
2000-10-28T17:20:19Z

There is even one more Andrew :-) Here is the full patch:

--- ./net/ipv4/ip_gre.c.~1~ Thu Aug 24 18:48:54 2000
+++ ./net/ipv4/ip_gre.c Sat Oct 28 09:59:43 2000
@@ -1266,7 +1266,9 @@
#ifdef MODULE
register_netdev(&ipgre_fb_tunnel_dev);
#else
+ rtnl_lock();
register_netdevice(&ipgre_fb_tunnel_dev);
+ rtnl_unlock();
#endif

inet_add_protocol(&ipgre_protocol);
--- ./net/ipv4/ipip.c.~1~ Thu Aug 24 19:15:47 2000
+++ ./net/ipv4/ipip.c Sat Oct 28 10:00:04 2000
@@ -894,7 +894,9 @@
#ifdef MODULE
register_netdev(&ipip_fb_tunnel_dev);
#else
+ rtnl_lock();
register_netdevice(&ipip_fb_tunnel_dev);
+ rtnl_unlock();
#endif

inet_add_protocol(&ipip_protocol);
--- ./net/ipv6/sit.c.~1~ Mon Oct 9 21:36:50 2000
+++ ./net/ipv6/sit.c Sat Oct 28 10:00:50 2000
@@ -829,7 +829,9 @@
#ifdef MODULE
register_netdev(&ipip6_fb_tunnel_dev);
#else
+ rtnl_lock();
register_netdevice(&ipip6_fb_tunnel_dev);
+ rtnl_unlock();
#endif
inet_add_protocol(&sit_protocol);
return 0;