[janitor] ipv6 fib: handle kmem_cache_create() failure

2 messages, 2 authors, 2004-02-23 · open the first message on its own page

[janitor] ipv6 fib: handle kmem_cache_create() failure

From: Randy.Dunlap <hidden>
Date: 2004-02-23 21:37:02

Hi,
Please apply to 2.6.3-current.


From: <redacted>(Walter Harms)



 linux-263-kj1-rddunlap/net/ipv6/ip6_fib.c |    2 ++
 1 files changed, 2 insertions(+)

diff -puN net/ipv6/ip6_fib.c~ipv6_fib_kmemcc net/ipv6/ip6_fib.c
--- linux-263-kj1/net/ipv6/ip6_fib.c~ipv6_fib_kmemcc	2004-02-18 14:41:32.000000000 -0800
+++ linux-263-kj1-rddunlap/net/ipv6/ip6_fib.c	2004-02-18 14:41:32.000000000 -0800
@@ -1239,6 +1239,8 @@ void __init fib6_init(void)
 					   sizeof(struct fib6_node),
 					   0, SLAB_HWCACHE_ALIGN,
 					   NULL, NULL);
+	if (!fib6_node_kmem)
+		panic("cannot create fib6_nodes cache");
 }
 
 #ifdef MODULE
_


--
~Randy

Re: [janitor] ipv6 fib: handle kmem_cache_create() failure

From: David S. Miller <hidden>
Date: 2004-02-23 23:14:03

On Mon, 23 Feb 2004 13:37:02 -0800
"Randy.Dunlap" [off-list ref] wrote:
Please apply to 2.6.3-current.
 ...
From: <redacted>(Walter Harms)
 ...
 linux-263-kj1-rddunlap/net/ipv6/ip6_fib.c |    2 ++
 1 files changed, 2 insertions(+)
Applied, thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help