netfilter: nf_tables: take AF module reference when creating a table
authorPatrick McHardy <kaber@trash.net>
Thu, 9 Jan 2014 18:42:40 +0000 (18:42 +0000)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 9 Jan 2014 19:17:16 +0000 (20:17 +0100)
commit7047f9d052c379e14b7693bb9f1b766827d0bc40
treeba7922b54a4c5b8690bba765b7aa9805cf561437
parentc5c1f975ada48801f1e08e2215714315fa9cf306
netfilter: nf_tables: take AF module reference when creating a table

The table refers to data of the AF module, so we need to make sure the
module isn't unloaded while the table exists.

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