lkml.org 
[lkml]   [2000]   [Oct]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: RTNL assert

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;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 12:45    [W:0.054 / U:2.304 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site