diff --git a/mm/slub.c b/mm/slub.c index 7836b45ea1fad99cd094ee8a45d5cddf053df54d..e842c19e67fb1b3df59403eebef652cd242f6020 100644 --- a/mm/slub.c +++ b/mm/slub.c @@ -2082,6 +2082,9 @@ static void *__slab_alloc(struct kmem_cache *s, gfp_t gfpflags, int node, stat(s, ALLOC_SLAB); c->node = page_to_nid(page); c->page = page; + + if (kmem_cache_debug(s)) + goto debug; goto load_freelist; } if (!(gfpflags & __GFP_NOWARN) && printk_ratelimit())