diff options
Diffstat (limited to 'mm/slab.c')
-rw-r--r-- | mm/slab.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -4446,7 +4446,8 @@ const struct seq_operations slabstats_op = { | |||
4446 | */ | 4446 | */ |
4447 | size_t ksize(const void *objp) | 4447 | size_t ksize(const void *objp) |
4448 | { | 4448 | { |
4449 | if (unlikely(ZERO_OR_NULL_PTR(objp))) | 4449 | BUG_ON(!objp); |
4450 | if (unlikely(objp == ZERO_SIZE_PTR)) | ||
4450 | return 0; | 4451 | return 0; |
4451 | 4452 | ||
4452 | return obj_size(virt_to_cache(objp)); | 4453 | return obj_size(virt_to_cache(objp)); |