Merge tag 'v4.4.56' into linux-linaro-lsk-v4.4
[firefly-linux-kernel-4.4.55.git] / net / ipv6 / addrconf.c
index cb8bb5988c03fc7849eb5fbfda8b8bb9d55a7d34..253186a3556730b5b22df84fe1645123feee9672 100644 (file)
@@ -5244,8 +5244,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);
@@ -5254,7 +5253,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)