diff --git a/net/ipv4/fib_trie.c b/net/ipv4/fib_trie.c index ffc5332f139062525e92e1f03b197524842a02f1..a28f525e2c47458c58768038566cb7785ae0069f 100644 --- a/net/ipv4/fib_trie.c +++ b/net/ipv4/fib_trie.c @@ -497,7 +497,7 @@ static void tnode_free(struct key_vector *tn) tn = container_of(head, struct tnode, rcu)->kv; } - if (tnode_free_size >= sysctl_fib_sync_mem) { + if (tnode_free_size >= READ_ONCE(sysctl_fib_sync_mem)) { tnode_free_size = 0; synchronize_rcu(); }