diff options
Diffstat (limited to 'net/ipv4/tcp_metrics.c')
-rw-r--r-- | net/ipv4/tcp_metrics.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/tcp_metrics.c b/net/ipv4/tcp_metrics.c index 759e6bc8327b..03b51cdcc731 100644 --- a/net/ipv4/tcp_metrics.c +++ b/net/ipv4/tcp_metrics.c | |||
@@ -892,7 +892,7 @@ static void tcp_metrics_flush_all(struct net *net) | |||
892 | pp = &hb->chain; | 892 | pp = &hb->chain; |
893 | for (tm = deref_locked(*pp); tm; tm = deref_locked(*pp)) { | 893 | for (tm = deref_locked(*pp); tm; tm = deref_locked(*pp)) { |
894 | match = net ? net_eq(tm_net(tm), net) : | 894 | match = net ? net_eq(tm_net(tm), net) : |
895 | !atomic_read(&tm_net(tm)->count); | 895 | !refcount_read(&tm_net(tm)->count); |
896 | if (match) { | 896 | if (match) { |
897 | *pp = tm->tcpm_next; | 897 | *pp = tm->tcpm_next; |
898 | kfree_rcu(tm, rcu_head); | 898 | kfree_rcu(tm, rcu_head); |