netdev
[Top] [All Lists]

[janitor] ipv4 ipmr: handle kmem_cache_create() failure

To: netdev@xxxxxxxxxxx
Subject: [janitor] ipv4 ipmr: handle kmem_cache_create() failure
From: "Randy.Dunlap" <rddunlap@xxxxxxxx>
Date: Mon, 23 Feb 2004 13:36:51 -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/ipv4/ipmr.c |    3 +++
 1 files changed, 3 insertions(+)

diff -puN net/ipv4/ipmr.c~ipv4_ipmr_kmemcc net/ipv4/ipmr.c
--- linux-263-kj1/net/ipv4/ipmr.c~ipv4_ipmr_kmemcc      2004-02-18 
14:41:20.000000000 -0800
+++ linux-263-kj1-rddunlap/net/ipv4/ipmr.c      2004-02-18 14:41:20.000000000 
-0800
@@ -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

<Prev in Thread] Current Thread [Next in Thread>