mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-10 20:48:12 +00:00
net/sched: act_ct: set net pointer before publishing flowtable
nf_flow_table_init() adds the flowtable to the global flowtables list. However, tcf_ct_flow_table_get() sets the table's network namespace only after that call, leaving a window where the published table has a NULL namespace pointer. Set the namespace before calling nf_flow_table_init() so that flowtable list walkers can rely on it being initialized. This is required by: "netfilter: flowtable: check namespace before iterating flows" Signed-off-by: Qingfang Deng <qingfang.deng@linux.dev> Reviewed-by: Xuanqiang Luo <luoxuanqiang@kylinos.cn> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
This commit is contained in:
parent
2ac41d7009
commit
d4548625f3
1 changed files with 1 additions and 1 deletions
Loading…
Add table
Add a link
Reference in a new issue