From: Marco Elver Date: Tue, 15 Dec 2020 23:31:12 +0000 (+0100) Subject: kfence: fix typo in test X-Git-Tag: accepted/tizen/7.0/unified/20221110.055811~15^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F49%2F281549%2F1;p=platform%2Fkernel%2Flinux-rpi.git kfence: fix typo in test Fix a typo/accidental copy-paste that resulted in the obviously incorrect 'GFP_KERNEL * 2' expression. Reported-by: kernel test robot Signed-off-by: Marco Elver Acked-by: Alexander Potapenko [port kfence feature to rpi-5.10.95] Signed-off-by: Sung-hun Kim Signed-off-by: Marek Szyprowski Signed-off-by: Seung-Woo Kim Change-Id: I157e9378f99fe2b1db005ee402dc0cdb6fe54164 --- diff --git a/mm/kfence/kfence_test.c b/mm/kfence/kfence_test.c index 1433a35..f57c61c 100644 --- a/mm/kfence/kfence_test.c +++ b/mm/kfence/kfence_test.c @@ -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));