diff options
Diffstat (limited to 'mm/slab.c')
-rw-r--r-- | mm/slab.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -789,6 +789,7 @@ static inline struct kmem_cache *__find_general_cachep(size_t size, | |||
789 | */ | 789 | */ |
790 | BUG_ON(malloc_sizes[INDEX_AC].cs_cachep == NULL); | 790 | BUG_ON(malloc_sizes[INDEX_AC].cs_cachep == NULL); |
791 | #endif | 791 | #endif |
792 | WARN_ON_ONCE(size == 0); | ||
792 | while (size > csizep->cs_size) | 793 | while (size > csizep->cs_size) |
793 | csizep++; | 794 | csizep++; |
794 | 795 | ||