]> git.karo-electronics.de Git - linux-beck.git/blobdiff - net/ipv6/addrconf.c
ipv6: addrconf: Avoid addrconf_disable_change() using RCU read-side lock
[linux-beck.git] / net / ipv6 / addrconf.c
index 4bc5ba3ae452eb99ed3a70c0926f6bb1ed5c001a..95dfcba38ff6dd471befce1cbea6b49f0940fff3 100644 (file)
@@ -5515,8 +5515,7 @@ static void addrconf_disable_change(struct net *net, __s32 newf)
        struct net_device *dev;
        struct inet6_dev *idev;
 
-       rcu_read_lock();
-       for_each_netdev_rcu(net, dev) {
+       for_each_netdev(net, dev) {
                idev = __in6_dev_get(dev);
                if (idev) {
                        int changed = (!idev->cnf.disable_ipv6) ^ (!newf);
@@ -5525,7 +5524,6 @@ static void addrconf_disable_change(struct net *net, __s32 newf)
                                dev_disable_change(idev);
                }
        }
-       rcu_read_unlock();
 }
 
 static int addrconf_disable_ipv6(struct ctl_table *table, int *p, int newf)