summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2000-06-06 23:25:19 +0000
committerRalf Baechle <ralf@linux-mips.org>2000-06-06 23:25:19 +0000
commit58e28005a0636ed606843e6696b8e2f1927acc9f (patch)
tree5268e152ee0913d6a22ba95cfa5ed352fac37f9e
parent0d5a4cf6690017448515a74368805422e825603d (diff)
Fix network device locking bug.
-rw-r--r--net/ipv4/ipconfig.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/ipv4/ipconfig.c b/net/ipv4/ipconfig.c
index 569b53dd2..b595684ed 100644
--- a/net/ipv4/ipconfig.c
+++ b/net/ipv4/ipconfig.c
@@ -167,6 +167,7 @@ static void __init ic_close_devs(void)
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 @@ static void __init ic_close_devs(void)
}
kfree_s(d, sizeof(struct ic_device));
}
+ rtnl_shunlock();
}
/*