summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-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();
}
/*