netfilter: nf_tables: fix error path in the init functions
authorPablo Neira Ayuso <pablo@netfilter.org>
Thu, 9 Jan 2014 19:32:19 +0000 (20:32 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 9 Jan 2014 22:25:48 +0000 (23:25 +0100)
commitcf4dfa85395ebe2769267a072b39e48301669842
tree92978b3f3a0088763a7a683166c1b25c8883cea2
parent3876d22dba62ebf6582f33e1ef2160eeb95e1129
netfilter: nf_tables: fix error path in the init functions

We have to unregister chain type if this fails to register netns.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/ipv4/netfilter/nf_tables_ipv4.c
net/ipv6/netfilter/nf_tables_ipv6.c
net/netfilter/nf_tables_inet.c