Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ab5e5c0

Browse files
committed
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 ae08983 ("netfilter: nf_tables: prefer kfree_rcu(ptr, rcu) variant"). Fixes: f9a4300 ("netfilter: nf_tables: double hook unregistration in netns path") Signed-off-by: Pablo Neira Ayuso <[email protected]>
1 parent 282e5f8 commit ab5e5c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/netfilter/nf_tables_api.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7332,7 +7332,7 @@ static void __nft_unregister_flowtable_net_hooks(struct net *net,
73327332
nf_unregister_net_hook(net, &hook->ops);
73337333
if (release_netdev) {
73347334
list_del(&hook->list);
7335-
kfree_rcu(hook);
7335+
kfree_rcu(hook, rcu);
73367336
}
73377337
}
73387338
}

0 commit comments

Comments
 (0)