diff options
-rw-r--r-- | net/ipv4/fib_trie.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ipv4/fib_trie.c b/net/ipv4/fib_trie.c index e9cb2588e416..18bcaf2ff2fd 100644 --- a/net/ipv4/fib_trie.c +++ b/net/ipv4/fib_trie.c | |||
@@ -1143,8 +1143,9 @@ static struct list_head *fib_insert_node(struct trie *t, u32 key, int plen) | |||
1143 | put_child(tp, cindex, (struct rt_trie_node *)tn); | 1143 | put_child(tp, cindex, (struct rt_trie_node *)tn); |
1144 | } else { | 1144 | } else { |
1145 | rcu_assign_pointer(t->trie, (struct rt_trie_node *)tn); | 1145 | rcu_assign_pointer(t->trie, (struct rt_trie_node *)tn); |
1146 | tp = tn; | ||
1147 | } | 1146 | } |
1147 | |||
1148 | tp = tn; | ||
1148 | } | 1149 | } |
1149 | 1150 | ||
1150 | if (tp && tp->pos + tp->bits > 32) | 1151 | if (tp && tp->pos + tp->bits > 32) |