diff options
| author | Walter Harms <wharms@bfs.de> | 2004-02-22 23:11:34 -0800 |
|---|---|---|
| committer | David S. Miller <davem@kernel.bkbits.net> | 2004-02-22 23:11:34 -0800 |
| commit | 748c75bdd7a577ebf595852b8fe79098a9399b31 (patch) | |
| tree | 5ef39977f31b7f48f79957e42cae4698bdcdc3a6 | |
| parent | d25a57c71b2c3421af71a8533f78be190a7bb1cf (diff) | |
[IPV6]: Handle kmem_cache_create() failure in route.c
| -rw-r--r-- | net/ipv6/route.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/ipv6/route.c b/net/ipv6/route.c index 8871f62d0d71..442b4d5ef10c 100644 --- a/net/ipv6/route.c +++ b/net/ipv6/route.c @@ -1988,6 +1988,9 @@ void __init ip6_route_init(void) sizeof(struct rt6_info), 0, SLAB_HWCACHE_ALIGN, NULL, NULL); + if (!ip6_dst_ops.kmem_cachep) + panic("cannot create ip6_dst_cache"); + fib6_init(); #ifdef CONFIG_PROC_FS p = proc_net_create("ipv6_route", 0, rt6_proc_info); |
