]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nf_tables: don't update chain with unset counters
authorPablo Neira Ayuso <pablo@netfilter.org>
Tue, 5 Aug 2014 15:25:59 +0000 (17:25 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 8 Aug 2014 13:38:50 +0000 (15:38 +0200)
commit7f0d849d978cf79763c35a20c6e7671b4a4ad4ed
treeefda3574e66870d16818e423e4587c5f784bcfaf
parent5192f7d9a9e84a71b128eb5ceda8d8e35118b159
netfilter: nf_tables: don't update chain with unset counters

Fix possible replacement of the per-cpu chain counters by null
pointer when updating an existing chain in the commit path.

Reported-by: Matteo Croce <technoboy85@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_tables_api.c