aboutsummaryrefslogtreecommitdiffstats
path: root/net/netfilter/nf_conntrack_sane.c
diff options
context:
space:
mode:
authorTaehee Yoo <ap420073@gmail.com>2018-04-08 23:59:34 +0900
committerPablo Neira Ayuso <pablo@netfilter.org>2018-04-24 10:29:14 +0200
commit35341a61597ea160b0b8d8a91052c62eb4be8dba (patch)
tree464fee70287160b15956688c558a4411c01ed21f /net/netfilter/nf_conntrack_sane.c
parentnetfilter: add NAT support for shifted portmap ranges (diff)
downloadlinux-dev-35341a61597ea160b0b8d8a91052c62eb4be8dba.tar.xz
linux-dev-35341a61597ea160b0b8d8a91052c62eb4be8dba.zip
netfilter: add __exit mark to helper modules
There are no __exit mark in the helper modules. because these exit functions used to be called by init function but now that is not. so we can add __exit mark. Signed-off-by: Taehee Yoo <ap420073@gmail.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter/nf_conntrack_sane.c')
-rw-r--r--net/netfilter/nf_conntrack_sane.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/netfilter/nf_conntrack_sane.c b/net/netfilter/nf_conntrack_sane.c
index ae457f39d5ce..5072ff96ab33 100644
--- a/net/netfilter/nf_conntrack_sane.c
+++ b/net/netfilter/nf_conntrack_sane.c
@@ -173,8 +173,7 @@ static const struct nf_conntrack_expect_policy sane_exp_policy = {
.timeout = 5 * 60,
};
-/* don't make this __exit, since it's called from __init ! */
-static void nf_conntrack_sane_fini(void)
+static void __exit nf_conntrack_sane_fini(void)
{
nf_conntrack_helpers_unregister(sane, ports_c * 2);
kfree(sane_buffer);