Skip to contentSkip to conversation

ipv4 ipmr: handle kmem_cache_create() failure

janitor Applied Randy.Dunlap 2 participants 2 messages Feb 23, 2004

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

Hi,
Please apply to 2.6.3-current.

From: <[email protected]>(Walter Harms)

 linux-263-kj1-rddunlap/net/ipv4/ipmr.c |    3 +++
 1 files changed, 3 insertions(+)
net/ipv4/ipmr.c renamed from net/ipv4/ipmr.c~ipv4_ipmr_kmemcc +3 -0
diff -puN net/ipv4/ipmr.c~ipv4_ipmr_kmemcc net/ipv4/ipmr.c
@@ -1892,6 +1892,9 @@ void __init ip_mr_init(void)
 				       sizeof(struct mfc_cache),
 				       0, SLAB_HWCACHE_ALIGN,
 				       NULL, NULL);
+	if (!mrt_cachep)
+		panic("cannot allocate ip_mrt_cache");
+
 	init_timer(&ipmr_expire_timer);
 	ipmr_expire_timer.function=ipmr_expire_process;
 	register_netdevice_notifier(&ip_mr_notifier);

_

--
~Randy

#1 lore raw
Quoted 1 line · On Mon, 23 Feb 2004 13:36:51 -0800 "Randy.Dunlap" <[email protected]> wrote:

Please apply to 2.6.3-current.

...

Quoted 1 line

From: <[email protected]>(Walter Harms)

...

Quoted 2 lines
 linux-263-kj1-rddunlap/net/ipv4/ipmr.c |    3 +++
 1 files changed, 3 insertions(+)

Applied, thanks.