From: Marco Elver Date: Thu, 31 Dec 2020 22:04:39 +0000 (+0000) Subject: kfence: fix typo in test X-Git-Tag: howlett/maple_spf/20210104~104 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=d5cb6946868e898e3491c0bcd2f3f0bbac13d728;p=users%2Fjedix%2Flinux-maple.git kfence: fix typo in test Fix a typo/accidental copy-paste that resulted in the obviously incorrect 'GFP_KERNEL * 2' expression. Link: https://lkml.kernel.org/r/X9lHQExmHGvETxY4@elver.google.com Signed-off-by: Marco Elver Reported-by: kernel test robot Acked-by: Alexander Potapenko Signed-off-by: Andrew Morton --- diff --git a/mm/kfence/kfence_test.c b/mm/kfence/kfence_test.c index 1433a35a1644..f57c61c833e6 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));