aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mm/slub.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/slub.c b/mm/slub.c
index 7796a0446b3f..48d82a55f4b6 100644
--- a/mm/slub.c
+++ b/mm/slub.c
@@ -3417,13 +3417,13 @@ static int validate_slab(struct kmem_cache *s, struct page *page,
3417 3417
3418 for_each_free_object(p, s, page->freelist) { 3418 for_each_free_object(p, s, page->freelist) {
3419 set_bit(slab_index(p, s, addr), map); 3419 set_bit(slab_index(p, s, addr), map);
3420 if (!check_object(s, page, p, 0)) 3420 if (!check_object(s, page, p, SLUB_RED_INACTIVE))
3421 return 0; 3421 return 0;
3422 } 3422 }
3423 3423
3424 for_each_object(p, s, addr, page->objects) 3424 for_each_object(p, s, addr, page->objects)
3425 if (!test_bit(slab_index(p, s, addr), map)) 3425 if (!test_bit(slab_index(p, s, addr), map))
3426 if (!check_object(s, page, p, 1)) 3426 if (!check_object(s, page, p, SLUB_RED_ACTIVE))
3427 return 0; 3427 return 0;
3428 return 1; 3428 return 1;
3429} 3429}