mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-16 22:39:48 +00:00
netfilter: nf_tables: do not leave chain stats enabled on error
[ Upstream commit43eb8949cf] Error might occur later in the nf_tables_addchain() codepath, enable static key only after transaction has been created. Fixes:9f08ea8481("netfilter: nf_tables: keep chain counters away from hot path") Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
09cd8ecf31
commit
98a621ef45
1 changed files with 4 additions and 2 deletions
Loading…
Add table
Add a link
Reference in a new issue