projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
282e5f8
)
netfilter: nf_tables: use kfree_rcu(ptr, rcu) to release hooks in clean_net path
author
Pablo Neira Ayuso
<pablo@netfilter.org>
Wed, 1 Jun 2022 14:00:00 +0000
(16:00 +0200)
committer
Pablo Neira Ayuso
<pablo@netfilter.org>
Wed, 1 Jun 2022 14:01:54 +0000
(16:01 +0200)
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
patch
|
blob
|
history
diff --git
a/net/netfilter/nf_tables_api.c
b/net/netfilter/nf_tables_api.c
index
746be13
..
129d3eb
100644
(file)
--- a/
net/netfilter/nf_tables_api.c
+++ b/
net/netfilter/nf_tables_api.c
@@
-7332,7
+7332,7
@@
static void __nft_unregister_flowtable_net_hooks(struct net *net,
nf_unregister_net_hook(net, &hook->ops);
if (release_netdev) {
list_del(&hook->list);
- kfree_rcu(hook);
+ kfree_rcu(hook
, rcu
);
}
}
}