Message ID | 20220207183308.1829495-4-ribalda@chromium.org |
---|---|
State | Superseded |
Headers | show |
Series | None | expand |
diff --git a/lib/test_kasan.c b/lib/test_kasan.c index 26a5c9007653..ae15f7bf7313 100644 --- a/lib/test_kasan.c +++ b/lib/test_kasan.c @@ -385,7 +385,7 @@ static void krealloc_uaf(struct kunit *test) kfree(ptr1); KUNIT_EXPECT_KASAN_FAIL(test, ptr2 = krealloc(ptr1, size2, GFP_KERNEL)); - KUNIT_ASSERT_PTR_EQ(test, (void *)ptr2, NULL); + KUNIT_ASSERT_NULL(test, ptr2); KUNIT_EXPECT_KASAN_FAIL(test, *(volatile char *)ptr1); }
Replace PTR_EQ checks with the more idiomatic and specific NULL macros. Signed-off-by: Ricardo Ribalda <ribalda@chromium.org> --- lib/test_kasan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)