|
@@ -1300,7 +1300,6 @@ static int rtnl_dump_ifinfo(struct sk_buff *skb, struct netlink_callback *cb)
|
|
s_h = cb->args[0];
|
|
s_h = cb->args[0];
|
|
s_idx = cb->args[1];
|
|
s_idx = cb->args[1];
|
|
|
|
|
|
- rcu_read_lock();
|
|
|
|
cb->seq = net->dev_base_seq;
|
|
cb->seq = net->dev_base_seq;
|
|
|
|
|
|
/* A hack to preserve kernel<->userspace interface.
|
|
/* A hack to preserve kernel<->userspace interface.
|
|
@@ -1322,7 +1321,7 @@ static int rtnl_dump_ifinfo(struct sk_buff *skb, struct netlink_callback *cb)
|
|
for (h = s_h; h < NETDEV_HASHENTRIES; h++, s_idx = 0) {
|
|
for (h = s_h; h < NETDEV_HASHENTRIES; h++, s_idx = 0) {
|
|
idx = 0;
|
|
idx = 0;
|
|
head = &net->dev_index_head[h];
|
|
head = &net->dev_index_head[h];
|
|
- hlist_for_each_entry_rcu(dev, head, index_hlist) {
|
|
|
|
|
|
+ hlist_for_each_entry(dev, head, index_hlist) {
|
|
if (idx < s_idx)
|
|
if (idx < s_idx)
|
|
goto cont;
|
|
goto cont;
|
|
err = rtnl_fill_ifinfo(skb, dev, RTM_NEWLINK,
|
|
err = rtnl_fill_ifinfo(skb, dev, RTM_NEWLINK,
|
|
@@ -1344,7 +1343,6 @@ cont:
|
|
}
|
|
}
|
|
}
|
|
}
|
|
out:
|
|
out:
|
|
- rcu_read_unlock();
|
|
|
|
cb->args[1] = idx;
|
|
cb->args[1] = idx;
|
|
cb->args[0] = h;
|
|
cb->args[0] = h;
|
|
|
|
|