diff options
Diffstat (limited to 'mm')
-rw-r--r-- | mm/slub.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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? */ |