Skip to content

Commit fe50543

Browse files
gfreewindummakynes
authored andcommitted
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: ecb2421 ("netfilter: add and use nf_ct_netns_get/put") Signed-off-by: Gao Feng <[email protected]> Signed-off-by: Pablo Neira Ayuso <[email protected]>
1 parent 79e09ef commit fe50543

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/ipv4/netfilter/ipt_CLUSTERIP.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ static void clusterip_tg_destroy(const struct xt_tgdtor_param *par)
461461

462462
clusterip_config_put(cipinfo->config);
463463

464-
nf_ct_netns_get(par->net, par->family);
464+
nf_ct_netns_put(par->net, par->family);
465465
}
466466

467467
#ifdef CONFIG_COMPAT

0 commit comments

Comments
 (0)