From 58e28005a0636ed606843e6696b8e2f1927acc9f Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Tue, 6 Jun 2000 23:25:19 +0000 Subject: [PATCH] Fix network device locking bug. --- net/ipv4/ipconfig.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/net/ipv4/ipconfig.c b/net/ipv4/ipconfig.c index 569b53dd20a..b595684ed8f 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(); } /* -- 2.11.4.GIT