]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nf_tables: use kfree_rcu(ptr, rcu) to release hooks in clean_net path
authorPablo Neira Ayuso <pablo@netfilter.org>
Wed, 1 Jun 2022 14:00:00 +0000 (16:00 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 1 Jun 2022 14:01:54 +0000 (16:01 +0200)
commitab5e5c062f67c5ae8cd07f0632ffa62dc0e7d169
treeed409cd8c7346493440d058001eeb4bb9daac247
parent282e5f8fe907dc3f2fbf9f2103b0e62ffc3a68a5
netfilter: nf_tables: use kfree_rcu(ptr, rcu) to release hooks in clean_net path

Use kfree_rcu(ptr, rcu) variant instead as described by ae089831ff28
("netfilter: nf_tables: prefer kfree_rcu(ptr, rcu) variant").

Fixes: f9a43007d3f7 ("netfilter: nf_tables: double hook unregistration in netns path")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_tables_api.c