Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 158992
b: refs/heads/master
c: b902e57
h: refs/heads/master
v: v3
  • Loading branch information
Jarek Poplawski authored and David S. Miller committed Jul 20, 2009
1 parent 38ba9af commit 96bf2e3
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: be916cdebe4dc720a23b1a9bb589f2c22afd6589
refs/heads/master: b902e5735272b6a79fe2853180b2ad6658aa9678
6 changes: 3 additions & 3 deletions trunk/net/ipv4/fib_trie.c
Original file line number Diff line number Diff line change
Expand Up @@ -1465,7 +1465,7 @@ static int fn_trie_lookup(struct fib_table *tb, const struct flowi *flp,
cindex = tkey_extract_bits(mask_pfx(key, current_prefix_length),
pos, bits);

n = tnode_get_child(pn, cindex);
n = tnode_get_child_rcu(pn, cindex);

if (n == NULL) {
#ifdef CONFIG_IP_FIB_TRIE_STATS
Expand Down Expand Up @@ -1600,7 +1600,7 @@ static int fn_trie_lookup(struct fib_table *tb, const struct flowi *flp,
if (chopped_off <= pn->bits) {
cindex &= ~(1 << (chopped_off-1));
} else {
struct tnode *parent = node_parent((struct node *) pn);
struct tnode *parent = node_parent_rcu((struct node *) pn);
if (!parent)
goto failed;

Expand Down Expand Up @@ -1813,7 +1813,7 @@ static struct leaf *trie_firstleaf(struct trie *t)
static struct leaf *trie_nextleaf(struct leaf *l)
{
struct node *c = (struct node *) l;
struct tnode *p = node_parent(c);
struct tnode *p = node_parent_rcu(c);

if (!p)
return NULL; /* trie with just one leaf */
Expand Down

0 comments on commit 96bf2e3

Please sign in to comment.