]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nf_tables: do not leave chain stats enabled on error
authorPablo Neira Ayuso <pablo@netfilter.org>
Sun, 21 Aug 2022 10:41:33 +0000 (12:41 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 24 Aug 2022 05:43:21 +0000 (07:43 +0200)
commiteeaac9f6629462163122a7481bc954fa01fe9812
tree68e431d7d8a2c6712f08da121396a86a34b7665d
parentc92be1c91876fbedef43caff1ac7d66a6ddf3dcd
netfilter: nf_tables: do not leave chain stats enabled on error

Error might occur later in the nf_tables_addchain() codepath, enable
static key only after transaction has been created.

Fixes: 342eb92ef180 ("netfilter: nf_tables: keep chain counters away from hot path")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_tables_api.c