File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -186,7 +186,9 @@ static inline struct tnode *node_parent_rcu(struct node *node)
186
186
{
187
187
struct tnode * ret = node_parent (node );
188
188
189
- return rcu_dereference (ret );
189
+ return rcu_dereference_check (ret ,
190
+ rcu_read_lock_held () ||
191
+ lockdep_rtnl_is_held ());
190
192
}
191
193
192
194
/* Same as rcu_assign_pointer
@@ -1753,7 +1755,9 @@ static struct leaf *leaf_walk_rcu(struct tnode *p, struct node *c)
1753
1755
1754
1756
static struct leaf * trie_firstleaf (struct trie * t )
1755
1757
{
1756
- struct tnode * n = (struct tnode * ) rcu_dereference (t -> trie );
1758
+ struct tnode * n = (struct tnode * ) rcu_dereference_check (t -> trie ,
1759
+ rcu_read_lock_held () ||
1760
+ lockdep_rtnl_is_held ());
1757
1761
1758
1762
if (!n )
1759
1763
return NULL ;
You can’t perform that action at this time.
0 commit comments