Commit 642c89c
netfilter: nf_tables: Keep deleted flowtable hooks until after RCU
Documentation of list_del_rcu() warns callers to not immediately free
the deleted list item. While it seems not necessary to use the
RCU-variant of list_del() here in the first place, doing so seems to
require calling kfree_rcu() on the deleted item as well.
Fixes: 3f0465a ("netfilter: nf_tables: dynamically allocate hooks per net_device in flowtables")
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>1 parent aa75876 commit 642c89c
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9207 | 9207 | | |
9208 | 9208 | | |
9209 | 9209 | | |
9210 | | - | |
| 9210 | + | |
9211 | 9211 | | |
9212 | 9212 | | |
9213 | 9213 | | |
| |||
0 commit comments