patch-2.4.0-test2 linux/net/ipv4/ipconfig.c
Next file: linux/net/ipv4/netfilter/ip_conntrack_core.c
Previous file: linux/net/ipv4/igmp.c
Back to the patch index
Back to the overall index
- Lines: 31
- Date:
Thu Jun 22 07:23:26 2000
- Orig file:
v2.4.0-test1/linux/net/ipv4/ipconfig.c
- Orig date:
Thu May 11 15:30:08 2000
diff -u --recursive --new-file v2.4.0-test1/linux/net/ipv4/ipconfig.c linux/net/ipv4/ipconfig.c
@@ -1,5 +1,5 @@
/*
- * $Id: ipconfig.c,v 1.31 2000/05/03 06:37:06 davem Exp $
+ * $Id: ipconfig.c,v 1.33 2000/06/21 17:21:43 davem Exp $
*
* Automatic Configuration of IP -- use BOOTP or RARP or user-supplied
* information to configure own IP address and routes.
@@ -40,7 +40,6 @@
#include <net/ip.h>
#include <net/ipconfig.h>
-#include <asm/segment.h>
#include <asm/uaccess.h>
#include <asm/checksum.h>
@@ -167,6 +166,7 @@
struct ic_device *d, *next;
struct net_device *dev;
+ rtnl_shlock();
next = ic_first_dev;
while ((d = next)) {
next = d->next;
@@ -177,6 +177,7 @@
}
kfree_s(d, sizeof(struct ic_device));
}
+ rtnl_shunlock();
}
/*
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)