mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
FROMGIT: 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/[email protected] Signed-off-by: Marco Elver <[email protected]> Reported-by: kernel test robot <[email protected]> Acked-by: Alexander Potapenko <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Bug: 177201466 (cherry picked from commit 161c8770c371ca3992565d8f1db1ad4a88a562e9 https://github.com/hnaz/linux-mm v5.11-rc4-mmots-2021-01-21-20-10) Test: CONFIG_KFENCE_KUNIT_TEST=y passes on Cuttlefish Signed-off-by: Alexander Potapenko <[email protected]> Change-Id: I4c26617c64fd2e6d410e6e793bb0eebf8fc87e55
This commit is contained in:
parent
f272e18c0d
commit
3b6152db16
1 changed files with 1 additions and 1 deletions
|
|
@ -657,7 +657,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));
|
||||
|
|
|
|||
Loading…
Reference in a new issue