]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
slab: move validate_slab_ptr() from alloc_consistency_checks() to its caller
authorVlastimil Babka <vbabka@suse.cz>
Mon, 15 Sep 2025 13:55:11 +0000 (15:55 +0200)
committerVlastimil Babka <vbabka@suse.cz>
Mon, 15 Sep 2025 14:10:10 +0000 (16:10 +0200)
commit40522db59b5bd36dd63d215bfb7fa83d64bce05a
tree80ed08436f491bc317f7e1bd45c29d3eaa77bae1
parent6f6fcd463410445101fae04335f617f40e6eca8a
slab: move validate_slab_ptr() from alloc_consistency_checks() to its caller

In alloc_debug_processing() we can call validate_slab_ptr() upfront and
then don't need to recheck when alloc_consistency_checks() fails for
other reasons.

Reviewed-by: Harry Yoo <harry.yoo@oracle.com>
Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
mm/slub.c