]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nf_tables: use the right index from flowtable error path
authorPablo Neira Ayuso <pablo@netfilter.org>
Tue, 27 Feb 2018 16:58:18 +0000 (17:58 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 27 Feb 2018 18:08:17 +0000 (19:08 +0100)
commitdffe81abcc1018d441f85e9cc3778605580f5490
tree7376e88e34485702ab0eab247548732e4d115527
parent03554fa55f357353c538bbced17324f11704b5aa
netfilter: nf_tables: use the right index from flowtable error path

Use the right loop index, not the number of devices in the array that we
need to remove, the following message uncovered the problem:

[ 5437.044119] hook not found, pf 5 num 0
[ 5437.044140] WARNING: CPU: 2 PID: 24983 at net/netfilter/core.c:376 __nf_unregister_net_hook+0x250/0x280

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