fib: suppress lockdep-RCU false positive in FIB trie.

Followup of commit 634a4b20

Allow tnode_get_child_rcu() to be called either under rcu_read_lock()
protection or with RTNL held.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by Eric Dumazet and committed by David S. Miller 4eaa0e3c 0110d6f2

+3 -1
+3 -1
net/ipv4/fib_trie.c
··· 209 209 { 210 210 struct node *ret = tnode_get_child(tn, i); 211 211 212 - return rcu_dereference(ret); 212 + return rcu_dereference_check(ret, 213 + rcu_read_lock_held() || 214 + lockdep_rtnl_is_held()); 213 215 } 214 216 215 217 static inline int tnode_child_length(const struct tnode *tn)