Skip to content

Commit fd7a462

Browse files
committed
allowedips: add missing __rcu annotation to satisfy sparse
A __rcu annotation got lost during refactoring, which caused sparse to become enraged. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
1 parent 383461d commit fd7a462

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/allowedips.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ static bool node_placement(struct allowedips_node __rcu *trie, const u8 *key,
163163
return exact;
164164
}
165165

166-
static inline void connect_node(struct allowedips_node **parent, u8 bit, struct allowedips_node *node)
166+
static inline void connect_node(struct allowedips_node __rcu **parent, u8 bit, struct allowedips_node *node)
167167
{
168168
node->parent_bit_packed = (unsigned long)parent | bit;
169169
rcu_assign_pointer(*parent, node);

0 commit comments

Comments
 (0)