diff options
author | Gao Feng <fgao@ikuai8.com> | 2017-04-05 21:45:22 -0400 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2017-04-13 17:21:40 -0400 |
commit | fe50543c194e2e1aee2f3eba41fcafd187b3dbde (patch) | |
tree | 3333a980bddfecca92170fe3c820290f32a3b47a /net | |
parent | 79e09ef96b6a5fb888f5241f3aa707e9ad0b1cce (diff) |
netfilter: ipt_CLUSTERIP: Fix wrong conntrack netns refcnt usage
Current codes invoke wrongly nf_ct_netns_get in the destroy routine,
it should use nf_ct_netns_put, not nf_ct_netns_get.
It could cause some modules could not be unloaded.
Fixes: ecb2421b5ddf ("netfilter: add and use nf_ct_netns_get/put")
Signed-off-by: Gao Feng <fgao@ikuai8.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net')
-rw-r--r-- | net/ipv4/netfilter/ipt_CLUSTERIP.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/netfilter/ipt_CLUSTERIP.c b/net/ipv4/netfilter/ipt_CLUSTERIP.c index 52f26459efc3..9b8841316e7b 100644 --- a/net/ipv4/netfilter/ipt_CLUSTERIP.c +++ b/net/ipv4/netfilter/ipt_CLUSTERIP.c | |||
@@ -461,7 +461,7 @@ static void clusterip_tg_destroy(const struct xt_tgdtor_param *par) | |||
461 | 461 | ||
462 | clusterip_config_put(cipinfo->config); | 462 | clusterip_config_put(cipinfo->config); |
463 | 463 | ||
464 | nf_ct_netns_get(par->net, par->family); | 464 | nf_ct_netns_put(par->net, par->family); |
465 | } | 465 | } |
466 | 466 | ||
467 | #ifdef CONFIG_COMPAT | 467 | #ifdef CONFIG_COMPAT |