| To: | netdev@xxxxxxxxxxx |
|---|---|
| Subject: | [janitor] ipv6 route: handle kmem_cache_create() failure |
| From: | "Randy.Dunlap" <rddunlap@xxxxxxxx> |
| Date: | Mon, 23 Feb 2004 13:37:11 -0800 |
| Cc: | davem@xxxxxxxxxx |
| Organization: | OSDL |
| Sender: | netdev-bounce@xxxxxxxxxxx |
Hi,
Please apply to 2.6.3-current.
From: <WHarms@xxxxxx>(Walter Harms)
linux-263-kj1-rddunlap/net/ipv6/route.c | 3 +++
1 files changed, 3 insertions(+)
diff -puN net/ipv6/route.c~ipv6_route_kmemcc net/ipv6/route.c
--- linux-263-kj1/net/ipv6/route.c~ipv6_route_kmemcc 2004-02-18
14:41:42.000000000 -0800
+++ linux-263-kj1-rddunlap/net/ipv6/route.c 2004-02-18 14:41:42.000000000
-0800
@@ -1987,6 +1987,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);
_
--
~Randy
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [janitor] pppoe: handle !PROC_FS, Randy.Dunlap |
|---|---|
| Next by Date: | [janitor] ipv6 fib: handle kmem_cache_create() failure, Randy.Dunlap |
| Previous by Thread: | [janitor] pppoe: handle !PROC_FS, Randy.Dunlap |
| Next by Thread: | Re: [janitor] ipv6 route: handle kmem_cache_create() failure, David S. Miller |
| Indexes: | [Date] [Thread] [Top] [All Lists] |