]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
vrf: don't panic on cache create failure
authorNikolay Aleksandrov <nikolay@cumulusnetworks.com>
Wed, 19 Aug 2015 03:27:07 +0000 (06:27 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 Aug 2015 20:01:56 +0000 (13:01 -0700)
It's pointless to panic on cache create failure when that case is handled
and even more so since it's not a kernel-wide fatal problem so don't
panic.

Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vrf.c

index 4aa06450fafafcc3c8fb7fa128275c11ef2f3632..01dc91562a889f4e5ec6996a91b29dd76112a304 100644 (file)
@@ -649,7 +649,7 @@ static int __init vrf_init_module(void)
        vrf_dst_ops.kmem_cachep =
                kmem_cache_create("vrf_ip_dst_cache",
                                  sizeof(struct rtable), 0,
-                                 SLAB_HWCACHE_ALIGN | SLAB_PANIC,
+                                 SLAB_HWCACHE_ALIGN,
                                  NULL);
 
        if (!vrf_dst_ops.kmem_cachep)