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)
ipv6_sysctl_unregister();
#endif
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);
#endif /* MODULE */
......@@ -1227,17 +1227,17 @@ void fib6_run_gc(unsigned long dummy)
void __init fib6_init(void)
{
if (!fib6_node_kmem)
fib6_node_kmem = kmem_cache_create("fib6_nodes",
sizeof(struct fib6_node),
0, SLAB_HWCACHE_ALIGN,
NULL, NULL);
fib6_node_kmem = kmem_cache_create("fib6_nodes",
sizeof(struct fib6_node),
0, SLAB_HWCACHE_ALIGN,
NULL, NULL);
}
#ifdef MODULE
void fib6_gc_cleanup(void)
{
del_timer(&ip6_fib_timer);
kmem_cache_destroy(fib6_node_kmem);
}
#endif
......
......@@ -1934,5 +1934,6 @@ void ip6_route_cleanup(void)
xfrm6_fini();
rt6_ifdown(NULL);
fib6_gc_cleanup();
kmem_cache_destroy(ip6_dst_ops.kmem_cachep);
}
#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