Loading mm/slub.c +2 −2 Original line number Original line Diff line number Diff line Loading @@ -3401,13 +3401,13 @@ static int validate_slab(struct kmem_cache *s, struct page *page, for_each_free_object(p, s, page->freelist) { for_each_free_object(p, s, page->freelist) { set_bit(slab_index(p, s, addr), map); set_bit(slab_index(p, s, addr), map); if (!check_object(s, page, p, 0)) if (!check_object(s, page, p, SLUB_RED_INACTIVE)) return 0; return 0; } } for_each_object(p, s, addr, page->objects) for_each_object(p, s, addr, page->objects) if (!test_bit(slab_index(p, s, addr), map)) if (!test_bit(slab_index(p, s, addr), map)) if (!check_object(s, page, p, 1)) if (!check_object(s, page, p, SLUB_RED_ACTIVE)) return 0; return 0; return 1; return 1; } } Loading Loading
mm/slub.c +2 −2 Original line number Original line Diff line number Diff line Loading @@ -3401,13 +3401,13 @@ static int validate_slab(struct kmem_cache *s, struct page *page, for_each_free_object(p, s, page->freelist) { for_each_free_object(p, s, page->freelist) { set_bit(slab_index(p, s, addr), map); set_bit(slab_index(p, s, addr), map); if (!check_object(s, page, p, 0)) if (!check_object(s, page, p, SLUB_RED_INACTIVE)) return 0; return 0; } } for_each_object(p, s, addr, page->objects) for_each_object(p, s, addr, page->objects) if (!test_bit(slab_index(p, s, addr), map)) if (!test_bit(slab_index(p, s, addr), map)) if (!check_object(s, page, p, 1)) if (!check_object(s, page, p, SLUB_RED_ACTIVE)) return 0; return 0; return 1; return 1; } } Loading