kfence: fix typo in test 49/281549/1
authorMarco Elver <elver@google.com>
Tue, 15 Dec 2020 23:31:12 +0000 (00:31 +0100)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Tue, 20 Sep 2022 02:45:01 +0000 (11:45 +0900)
Fix a typo/accidental copy-paste that resulted in the obviously
incorrect 'GFP_KERNEL * 2' expression.

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Marco Elver <elver@google.com>
Acked-by: Alexander Potapenko <glider@google.com>
[port kfence feature to rpi-5.10.95]
Signed-off-by: Sung-hun Kim <sfoon.kim@samsung.com>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Change-Id: I157e9378f99fe2b1db005ee402dc0cdb6fe54164

mm/kfence/kfence_test.c

index 1433a35..f57c61c 100644 (file)
@@ -665,7 +665,7 @@ static void test_krealloc(struct kunit *test)
        for (; i < size * 3; i++) /* Fill to extra bytes. */
                buf[i] = i + 1;
 
-       buf = krealloc(buf, size * 2, GFP_KERNEL * 2); /* Shrink. */
+       buf = krealloc(buf, size * 2, GFP_KERNEL); /* Shrink. */
        KUNIT_EXPECT_GE(test, ksize(buf), size * 2);
        for (i = 0; i < size * 2; i++)
                KUNIT_EXPECT_EQ(test, buf[i], (char)(i + 1));