Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8a932792 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman
Browse files

FROMLIST: lib/test_meminit: fix off-by-one error in test_pages()



In commit efb78fa86e95 ("lib/test_meminit: allocate pages up to order
MAX_ORDER"), the loop for testing pages is set to "<= MAX_ORDER" which
causes crashes in systems when run.  Fix this to "< MAX_ORDER" to fix
the test to work properly.

Fixes: efb78fa86e95 ("lib/test_meminit: allocate pages up to order MAX_ORDER")
Cc: Andrew Donnellan <ajd@linux.ibm.com>
Cc: Alexander Potapenko <glider@google.com>
Cc: Xiaoke Wang <xkernel.wang@foxmail.com>
Cc: <stable@vger.kernel.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Change-Id: I213f196c8e32ca18f61c1929d4191a1a368fda06
Link: https://lore.kernel.org/lkml/2023101238-greasily-reiterate-aafc@gregkh/


Fixes: cbfffe51 ("lib/test_meminit: allocate pages up to order MAX_ORDER")
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent 5000f4d8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment