]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: ipt_CLUSTERIP: Fix wrong conntrack netns refcnt usage
authorGao Feng <fgao@ikuai8.com>
Thu, 6 Apr 2017 01:45:22 +0000 (09:45 +0800)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 13 Apr 2017 21:21:40 +0000 (23:21 +0200)
commit90b73feed74acac014f97ebc70890218226c87fd
tree3333a980bddfecca92170fe3c820290f32a3b47a
parentc5972a5451604e7d846ef4254c5025cb511c1fcb
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: d1bff9782d92 ("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>
net/ipv4/netfilter/ipt_CLUSTERIP.c