From 34b5adf14b0a785faab4cd79c29c8597ab8c46cf Mon Sep 17 00:00:00 2001 From: Ksawlii Date: Sun, 24 Nov 2024 00:23:18 +0100 Subject: [PATCH] Revert "netfilter: nf_tables: Keep deleted flowtable hooks until after RCU" This reverts commit 9dff7ecbaac4ffc007ac354c46609ca6a0edd186. --- net/netfilter/nf_tables_api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/netfilter/nf_tables_api.c b/net/netfilter/nf_tables_api.c index 2bd1c7e7e..9e2695bed 100755 --- a/net/netfilter/nf_tables_api.c +++ b/net/netfilter/nf_tables_api.c @@ -7625,7 +7625,7 @@ static void nf_tables_flowtable_destroy(struct nft_flowtable *flowtable) flowtable->data.type->setup(&flowtable->data, hook->ops.dev, FLOW_BLOCK_UNBIND); list_del_rcu(&hook->list); - kfree_rcu(hook, rcu); + kfree(hook); } kfree(flowtable->name); module_put(flowtable->data.type->owner);