Attempting to use boot a diskless machine with two Ethernet cards using
BOOTP results in this:
> Sending BOOTP requests..... OK
> IP-Config: Got BOOTP answer from 10.98.169.23, my address is 10.98.169.25
> RTNL: assertion failed at devinet.c(785):inetdev_event
> RTNL: assertion failed at devinet.c(785):inetdev_event
Patch below,
Ralf
Index: net/ipv4/ipconfig.c
===================================================================
RCS file: /usr/src/cvs/linux/net/ipv4/ipconfig.c,v
retrieving revision 1.26
diff -u -r1.26 ipconfig.c
--- ipconfig.c 2000/05/13 15:51:59 1.26
+++ ipconfig.c 2000/06/07 16:26:39
@@ -167,6 +167,7 @@
struct ic_device *d, *next;
struct net_device *dev;
+ rtnl_shlock();
next = ic_first_dev;
while ((d = next)) {
next = d->next;
@@ -177,6 +178,7 @@
}
kfree_s(d, sizeof(struct ic_device));
}
+ rtnl_shunlock();
}
/*
|