summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorJulian Anastasov <ja@ssi.bg>2023-02-01 18:56:53 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2023-02-02 14:02:01 +0100
commite4d0fe71f59dc5137a2793ff7560730d80d1e1f4 (patch)
treef17fde9071753f792728421fcdc7e74215e7bd67 /net
parentnetfilter: conntrack: remote a return value of the 'seq_print_acct' function. (diff)
downloadlinux-e4d0fe71f59dc5137a2793ff7560730d80d1e1f4.tar.xz
linux-e4d0fe71f59dc5137a2793ff7560730d80d1e1f4.zip
ipvs: avoid kfree_rcu without 2nd arg
Avoid possible synchronize_rcu() as part from the kfree_rcu() call when 2nd arg is not provided. Signed-off-by: Julian Anastasov <ja@ssi.bg> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net')
-rw-r--r--net/netfilter/ipvs/ip_vs_est.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netfilter/ipvs/ip_vs_est.c b/net/netfilter/ipvs/ip_vs_est.c
index ce2a1549b304..c5970ba416ae 100644
--- a/net/netfilter/ipvs/ip_vs_est.c
+++ b/net/netfilter/ipvs/ip_vs_est.c
@@ -549,7 +549,7 @@ void ip_vs_stop_estimator(struct netns_ipvs *ipvs, struct ip_vs_stats *stats)
__set_bit(row, kd->avail);
if (!kd->tick_len[row]) {
RCU_INIT_POINTER(kd->ticks[row], NULL);
- kfree_rcu(td);
+ kfree_rcu(td, rcu_head);
}
kd->est_count--;
if (kd->est_count) {