]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
kfence: fix typo in test
authorMarco Elver <elver@google.com>
Thu, 31 Dec 2020 22:04:39 +0000 (22:04 +0000)
committerJohannes Weiner <hannes@cmpxchg.org>
Thu, 31 Dec 2020 22:04:39 +0000 (22:04 +0000)
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 <elver@google.com>
Reported-by: kernel test robot <lkp@intel.com>
Acked-by: Alexander Potapenko <glider@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/kfence/kfence_test.c

index 1433a35a1644491105f1adb690ae9a84421e8764..f57c61c833e6e694b398f2adbdcd701f27f51b11 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));