|
@@ -494,8 +494,7 @@ static void addrconf_forward_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.forwarding) ^ (!newf);
|
|
@@ -504,7 +503,6 @@ static void addrconf_forward_change(struct net *net, __s32 newf)
|
|
|
dev_forward_change(idev);
|
|
|
}
|
|
|
}
|
|
|
- rcu_read_unlock();
|
|
|
}
|
|
|
|
|
|
static int addrconf_fixup_forwarding(struct ctl_table *table, int *p, int newf)
|