Commit 992c0e15 authored by Daniel McNeil's avatar Daniel McNeil Committed by David S. Miller

[IPV6]: Missing kmem_cache_destroy calls.

parent 20a73944
...@@ -871,6 +871,9 @@ static void inet6_exit(void) ...@@ -871,6 +871,9 @@ static void inet6_exit(void)
ipv6_sysctl_unregister(); ipv6_sysctl_unregister();
#endif #endif
cleanup_ipv6_mibs(); cleanup_ipv6_mibs();
kmem_cache_destroy(tcp6_sk_cachep);
kmem_cache_destroy(udp6_sk_cachep);
kmem_cache_destroy(raw6_sk_cachep);
} }
module_exit(inet6_exit); module_exit(inet6_exit);
#endif /* MODULE */ #endif /* MODULE */
...@@ -1227,17 +1227,17 @@ void fib6_run_gc(unsigned long dummy) ...@@ -1227,17 +1227,17 @@ void fib6_run_gc(unsigned long dummy)
void __init fib6_init(void) void __init fib6_init(void)
{ {
if (!fib6_node_kmem) fib6_node_kmem = kmem_cache_create("fib6_nodes",
fib6_node_kmem = kmem_cache_create("fib6_nodes", sizeof(struct fib6_node),
sizeof(struct fib6_node), 0, SLAB_HWCACHE_ALIGN,
0, SLAB_HWCACHE_ALIGN, NULL, NULL);
NULL, NULL);
} }
#ifdef MODULE #ifdef MODULE
void fib6_gc_cleanup(void) void fib6_gc_cleanup(void)
{ {
del_timer(&ip6_fib_timer); del_timer(&ip6_fib_timer);
kmem_cache_destroy(fib6_node_kmem);
} }
#endif #endif
......
...@@ -1934,5 +1934,6 @@ void ip6_route_cleanup(void) ...@@ -1934,5 +1934,6 @@ void ip6_route_cleanup(void)
xfrm6_fini(); xfrm6_fini();
rt6_ifdown(NULL); rt6_ifdown(NULL);
fib6_gc_cleanup(); fib6_gc_cleanup();
kmem_cache_destroy(ip6_dst_ops.kmem_cachep);
} }
#endif /* MODULE */ #endif /* MODULE */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment