From: Alan Cox Date: Tue, 11 Sep 2018 15:00:33 +0000 (+0100) Subject: simple: Fix off by one X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=22e525a6f950a562ed8968a55621cab423b544fb;p=FUZIX.git simple: Fix off by one --- 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; }