Skip to content
Commit 43eb8949 authored by Pablo Neira Ayuso's avatar Pablo Neira Ayuso
Browse files

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: 9f08ea84

 ("netfilter: nf_tables: keep chain counters away from hot path")
Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
parent 7044ab28
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment