diff options
Diffstat (limited to 'mm/slob.c')
-rw-r--r-- | mm/slob.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -484,7 +484,8 @@ size_t ksize(const void *block) | |||
484 | { | 484 | { |
485 | struct slob_page *sp; | 485 | struct slob_page *sp; |
486 | 486 | ||
487 | if (unlikely(ZERO_OR_NULL_PTR(block))) | 487 | BUG_ON(!block); |
488 | if (unlikely(block == ZERO_SIZE_PTR)) | ||
488 | return 0; | 489 | return 0; |
489 | 490 | ||
490 | sp = (struct slob_page *)virt_to_page(block); | 491 | sp = (struct slob_page *)virt_to_page(block); |