]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nf_tables: fix goto action
authorPablo Neira Ayuso <pablo@netfilter.org>
Sat, 10 May 2014 16:33:11 +0000 (18:33 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 12 May 2014 14:32:41 +0000 (16:32 +0200)
commit3de070ca025b74a70b243986d62581b2c44f14fa
tree1e5bbf0c9fcae75c7076baf0aee64123698ac8c0
parentdd62a2072968218b0af1593d3b921d5b8194cc7c
netfilter: nf_tables: fix goto action

This patch fixes a crash when trying to access the counters and the
default chain policy from the non-base chain that we have reached
via the goto chain. Fix this by falling back on the original base
chain after returning from the custom chain.

While fixing this, kill the inline function to account chain statistics
to improve source code readability.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_tables_core.c