Messages in this thread Patch in this message |  | | Date | Sat, 28 Oct 2000 10:05:49 -0700 | From | "David S. Miller" <> | Subject | Re: 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/
|  |