aboutsummaryrefslogtreecommitdiffstats
path: root/mm/slab.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/slab.c')
-rw-r--r--mm/slab.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/mm/slab.c b/mm/slab.c
index 6f5aeebd4306..6a3760e0353c 100644
--- a/mm/slab.c
+++ b/mm/slab.c
@@ -1990,10 +1990,9 @@ kmem_cache_create (const char *name, size_t size, size_t align,
1990 align = ralign; 1990 align = ralign;
1991 1991
1992 /* Get cache's description obj. */ 1992 /* Get cache's description obj. */
1993 cachep = kmem_cache_alloc(&cache_cache, SLAB_KERNEL); 1993 cachep = kmem_cache_zalloc(&cache_cache, SLAB_KERNEL);
1994 if (!cachep) 1994 if (!cachep)
1995 goto oops; 1995 goto oops;
1996 memset(cachep, 0, sizeof(struct kmem_cache));
1997 1996
1998#if DEBUG 1997#if DEBUG
1999 cachep->obj_size = size; 1998 cachep->obj_size = size;