Message ID | 20220208114541.2046909-4-ribalda@chromium.org (mailing list archive) |
---|---|
State | Accepted |
Commit | ccad78f17f9f2a9acc811f8762aa428644205c9b |
Headers | show |
Series | [v4,1/6] kunit: Introduce _NULL and _NOT_NULL macros | expand |
diff --git a/lib/test_kasan.c b/lib/test_kasan.c index 847cdbefab46..d680f46740b8 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); }