Skip to content

Commit 99a6087

Browse files
committed
kunit/fortify: Remove __kmalloc_node() test
__kmalloc_node() is considered an "internal" function to the Slab, so drop it from explicit testing. Link: https://lore.kernel.org/r/20240531185703.work.588-kees@kernel.org Signed-off-by: Kees Cook <kees@kernel.org>
1 parent 4e173c8 commit 99a6087

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

lib/fortify_kunit.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -235,9 +235,6 @@ static void fortify_test_alloc_size_##allocator##_dynamic(struct kunit *test) \
235235
kmalloc_array_node(alloc_size, 1, gfp, NUMA_NO_NODE), \
236236
kfree(p)); \
237237
checker(expected_size, __kmalloc(alloc_size, gfp), \
238-
kfree(p)); \
239-
checker(expected_size, \
240-
__kmalloc_node(alloc_size, gfp, NUMA_NO_NODE), \
241238
kfree(p)); \
242239
\
243240
orig = kmalloc(alloc_size, gfp); \

0 commit comments

Comments
 (0)