aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/route.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4/route.c')
-rw-r--r--net/ipv4/route.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/ipv4/route.c b/net/ipv4/route.c
index 075212e41b83..2c21d3be891b 100644
--- a/net/ipv4/route.c
+++ b/net/ipv4/route.c
@@ -324,7 +324,7 @@ static struct rtable *rt_cache_get_first(struct seq_file *seq)
324 struct rtable *r = NULL; 324 struct rtable *r = NULL;
325 325
326 for (st->bucket = rt_hash_mask; st->bucket >= 0; --st->bucket) { 326 for (st->bucket = rt_hash_mask; st->bucket >= 0; --st->bucket) {
327 if (!rcu_dereference_raw(rt_hash_table[st->bucket].chain)) 327 if (!rcu_access_pointer(rt_hash_table[st->bucket].chain))
328 continue; 328 continue;
329 rcu_read_lock_bh(); 329 rcu_read_lock_bh();
330 r = rcu_dereference_bh(rt_hash_table[st->bucket].chain); 330 r = rcu_dereference_bh(rt_hash_table[st->bucket].chain);
@@ -350,7 +350,7 @@ static struct rtable *__rt_cache_get_next(struct seq_file *seq,
350 do { 350 do {
351 if (--st->bucket < 0) 351 if (--st->bucket < 0)
352 return NULL; 352 return NULL;
353 } while (!rcu_dereference_raw(rt_hash_table[st->bucket].chain)); 353 } while (!rcu_access_pointer(rt_hash_table[st->bucket].chain));
354 rcu_read_lock_bh(); 354 rcu_read_lock_bh();
355 r = rcu_dereference_bh(rt_hash_table[st->bucket].chain); 355 r = rcu_dereference_bh(rt_hash_table[st->bucket].chain);
356 } 356 }
@@ -761,7 +761,7 @@ static void rt_do_flush(struct net *net, int process_context)
761 761
762 if (process_context && need_resched()) 762 if (process_context && need_resched())
763 cond_resched(); 763 cond_resched();
764 rth = rcu_dereference_raw(rt_hash_table[i].chain); 764 rth = rcu_access_pointer(rt_hash_table[i].chain);
765 if (!rth) 765 if (!rth)
766 continue; 766 continue;
767 767