netfilter: nf_tables: fix check for table overflow
authorPatrick McHardy <kaber@trash.net>
Thu, 9 Jan 2014 18:42:33 +0000 (18:42 +0000)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 9 Jan 2014 19:17:13 +0000 (20:17 +0100)
commit758206760cbadf66dc31d6587f5958691b34e9e5
tree9cb7750c1912a640347f3eeaa88ec87143d60e22
parent4401a862009bca28f02dcea4241191c27328816c
netfilter: nf_tables: fix check for table overflow

The table use counter is only increased for new chains, so move the check
to the correct position.

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