diff options
author | Vasily Averin <vvs@virtuozzo.com> | 2017-11-12 14:32:37 +0300 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2017-11-20 12:03:41 +0100 |
commit | 613d0776d3fe7eb28c695a63a5533a1ec8258c86 (patch) | |
tree | 08d9707ea53ccf351385ada525aeb3f250ccb6fd /net/ipv4 | |
parent | 07dc8bc9a6b15f54d3ad962af74a096c7d7b42b4 (diff) | |
download | linux-stable-613d0776d3fe7eb28c695a63a5533a1ec8258c86.tar.gz linux-stable-613d0776d3fe7eb28c695a63a5533a1ec8258c86.tar.bz2 linux-stable-613d0776d3fe7eb28c695a63a5533a1ec8258c86.zip |
netfilter: exit_net cleanup check added
Be sure that lists initialized in net_init hook was return to initial
state.
Signed-off-by: Vasily Averin <vvs@virtuozzo.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/ipv4')
-rw-r--r-- | net/ipv4/netfilter/ipt_CLUSTERIP.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/ipv4/netfilter/ipt_CLUSTERIP.c b/net/ipv4/netfilter/ipt_CLUSTERIP.c index 17b4ca562944..e35b8d074f06 100644 --- a/net/ipv4/netfilter/ipt_CLUSTERIP.c +++ b/net/ipv4/netfilter/ipt_CLUSTERIP.c @@ -819,6 +819,7 @@ static void clusterip_net_exit(struct net *net) cn->procdir = NULL; #endif nf_unregister_net_hook(net, &cip_arp_ops); + WARN_ON_ONCE(!list_empty(&cn->configs)); } static struct pernet_operations clusterip_net_ops = { |