netdev
[Top] [All Lists]

RTNL_ASSERT failure

To: netdev@xxxxxxxxxxx
Subject: RTNL_ASSERT failure
From: Ralf Baechle <ralf@xxxxxxxxxxxxxx>
Date: Tue, 6 Jun 2000 20:25:57 +0200
Sender: owner-netdev@xxxxxxxxxxx
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();
 }
 
 /*

<Prev in Thread] Current Thread [Next in Thread>
  • RTNL_ASSERT failure, Ralf Baechle <=