aboutsummaryrefslogtreecommitdiffstats
path: root/mm/slub.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/slub.c')
-rw-r--r--mm/slub.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/slub.c b/mm/slub.c
index 4a8585befd8..9d52cce7c99 100644
--- a/mm/slub.c
+++ b/mm/slub.c
@@ -1979,7 +1979,7 @@ static struct kmem_cache *get_slab(size_t size, gfp_t flags)
1979{ 1979{
1980 int index = kmalloc_index(size); 1980 int index = kmalloc_index(size);
1981 1981
1982 if (!size) 1982 if (!index)
1983 return NULL; 1983 return NULL;
1984 1984
1985 /* Allocation too large? */ 1985 /* Allocation too large? */