Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 75489
b: refs/heads/master
c: 0bccead
h: refs/heads/master
i:
  75487: 3159dbe
v: v3
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Jan 10, 2008
1 parent 0783c43 commit 4c50ef3
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 9cd40029423701c376391da59d2c6469672b4bed
refs/heads/master: 0bcceadceb0907094ba4e40bf9a7cd9b080f13fb
6 changes: 3 additions & 3 deletions trunk/net/ipv4/route.c
Original file line number Diff line number Diff line change
Expand Up @@ -283,12 +283,12 @@ static struct rtable *rt_cache_get_first(struct seq_file *seq)
break;
rcu_read_unlock_bh();
}
return r;
return rcu_dereference(r);
}

static struct rtable *rt_cache_get_next(struct seq_file *seq, struct rtable *r)
{
struct rt_cache_iter_state *st = rcu_dereference(seq->private);
struct rt_cache_iter_state *st = seq->private;

r = r->u.dst.rt_next;
while (!r) {
Expand All @@ -298,7 +298,7 @@ static struct rtable *rt_cache_get_next(struct seq_file *seq, struct rtable *r)
rcu_read_lock_bh();
r = rt_hash_table[st->bucket].chain;
}
return r;
return rcu_dereference(r);
}

static struct rtable *rt_cache_get_idx(struct seq_file *seq, loff_t pos)
Expand Down

0 comments on commit 4c50ef3

Please sign in to comment.