Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 171493
b: refs/heads/master
c: f1e9016
h: refs/heads/master
i:
  171491: b4da478
v: v3
  • Loading branch information
stephen hemminger authored and David S. Miller committed Nov 11, 2009
1 parent f4d4c68 commit d162a2f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9e067597ee0e51a07bc158e9e2703ca676920e8b
refs/heads/master: f1e9016da6d0f16551d90085758ae45d26826118
7 changes: 4 additions & 3 deletions trunk/net/sched/sch_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -1279,9 +1279,10 @@ static int tc_dump_qdisc(struct sk_buff *skb, struct netlink_callback *cb)

s_idx = cb->args[0];
s_q_idx = q_idx = cb->args[1];
read_lock(&dev_base_lock);

rcu_read_lock();
idx = 0;
for_each_netdev(&init_net, dev) {
for_each_netdev_rcu(&init_net, dev) {
struct netdev_queue *dev_queue;

if (idx < s_idx)
Expand All @@ -1302,7 +1303,7 @@ static int tc_dump_qdisc(struct sk_buff *skb, struct netlink_callback *cb)
}

done:
read_unlock(&dev_base_lock);
rcu_read_unlock();

cb->args[0] = idx;
cb->args[1] = q_idx;
Expand Down

0 comments on commit d162a2f

Please sign in to comment.