]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: x_tables: Add note about how to free percpu counters
authorBen Hutchings <ben.hutchings@codethink.co.uk>
Thu, 29 Mar 2018 14:12:41 +0000 (15:12 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 30 Mar 2018 09:44:27 +0000 (11:44 +0200)
commit67a5b890c20039d37abf91db36c6b7cd9d6bdfee
tree2fff9032feace0c2ac68193dba5b61deede9b8c4
parente79fd5114df2c82e7e892fa06bca77247fe3ad49
netfilter: x_tables: Add note about how to free percpu counters

Due to the way percpu counters are allocated and freed in blocks,
it is not safe to free counters individually.  Currently all callers
do the right thing, but let's note this restriction.

Fixes: 923b965cf3d0 ("netfilter: x_tables: pack percpu counter allocations")
Signed-off-by: Ben Hutchings <ben.hutchings@codethink.co.uk>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/x_tables.c