From 22e525a6f950a562ed8968a55621cab423b544fb Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Tue, 11 Sep 2018 16:00:33 +0100 Subject: [PATCH] simple: Fix off by one --- Kernel/simple.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Kernel/simple.c b/Kernel/simple.c index 44e98168..b178a359 100644 --- a/Kernel/simple.c +++ b/Kernel/simple.c @@ -41,7 +41,7 @@ int pagemap_alloc(ptptr p) /* FIXME: update once we have the new mm logic in place */ int pagemap_realloc(usize_t code, usize_t size, usize_t stack) { - if (size >= ramtop) + if (size > ramtop) return ENOMEM; return 0; } -- 2.34.1