Skip to content

Commit

Permalink
netfilter: conntrack: destroy kmemcache on module removal
Browse files Browse the repository at this point in the history
I forgot to move the kmem_cache_destroy into the exit path.

Fixes: 0c5366b ("netfilter: conntrack: use single slab cache)
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
  • Loading branch information
Florian Westphal authored and Pablo Neira Ayuso committed Jun 15, 2016
1 parent 61e0979 commit 7757114
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions net/netfilter/nf_conntrack_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1544,6 +1544,8 @@ void nf_conntrack_cleanup_end(void)
nf_conntrack_tstamp_fini();
nf_conntrack_acct_fini();
nf_conntrack_expect_fini();

kmem_cache_destroy(nf_conntrack_cachep);
}

/*
Expand Down

0 comments on commit 7757114

Please sign in to comment.