From: YueHaibing Date: Fri, 22 Feb 2019 06:15:30 +0000 (+0800) Subject: kcm: Remove unnecessary SLAB_PANIC for kmem_cache_create() in kcm_init X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=c211524029a1495763889c1489401c3e62a8e11b;p=linux.git kcm: Remove unnecessary SLAB_PANIC for kmem_cache_create() in kcm_init There has check NULL on kmem_cache_create on failure in kcm_init, no need use SLAB_PANIC to panic the system. Signed-off-by: YueHaibing Signed-off-by: David S. Miller --- diff --git a/net/kcm/kcmsock.c b/net/kcm/kcmsock.c index 571d824e4e249..c5c5ab6c5a1cc 100644 --- a/net/kcm/kcmsock.c +++ b/net/kcm/kcmsock.c @@ -2036,13 +2036,13 @@ static int __init kcm_init(void) kcm_muxp = kmem_cache_create("kcm_mux_cache", sizeof(struct kcm_mux), 0, - SLAB_HWCACHE_ALIGN | SLAB_PANIC, NULL); + SLAB_HWCACHE_ALIGN, NULL); if (!kcm_muxp) goto fail; kcm_psockp = kmem_cache_create("kcm_psock_cache", sizeof(struct kcm_psock), 0, - SLAB_HWCACHE_ALIGN | SLAB_PANIC, NULL); + SLAB_HWCACHE_ALIGN, NULL); if (!kcm_psockp) goto fail;