Skip to contentSkip to conversation

netfilter: conntrack: destroy kmemcache on module removal

PATCH Applied Florian Westphal 2 participants 2 messages Jun 10, 2016 – Jun 15, 2016

Subsystems (2)
lore
Share & tools
lore

Florian Westphal

author maintainer
#0 lore raw

PATCH 1/1 netfilter: conntrack: destroy kmemcache on module removal

I forgot to move the kmem_cache_destroy into the exit path.

Fixes 0c5366b3a8c7 ("netfilter: conntrack: use single slab cache)
---
 net/netfilter/nf_conntrack_core.c | 2 ++
 1 file changed, 2 insertions(+)
net/netfilter/nf_conntrack_core.c +2 -0
index db2312e..f204274 100644
@@ -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);
 }
 
 /*
Signature · 1 line
2.7.3
maintainer Applied
#1 lore raw
Quoted 1 line · Florian Westphal

I forgot to move the kmem_cache_destroy into the exit path.

Applied to nf, thanks Florian.