Revert "netfilter: nf_tables: Keep deleted flowtable hooks until after RCU"

This reverts commit 9dff7ecbaa.
This commit is contained in:
Ksawlii 2024-11-24 00:23:18 +01:00
parent dfba2abdca
commit 34b5adf14b

View file

@ -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);