From: Will Sowerbutts Date: Sat, 27 Dec 2014 14:39:26 +0000 (+0000) Subject: Kernel: Bug fix -- bankfixed pagemap_realloc() check was too strict X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=f225881dddbbe58e04d328b46d63ab3027ced173;p=FUZIX.git Kernel: Bug fix -- bankfixed pagemap_realloc() check was too strict --- diff --git a/Kernel/bankfixed.c b/Kernel/bankfixed.c index e671ffd0..397e0c3f 100644 --- a/Kernel/bankfixed.c +++ b/Kernel/bankfixed.c @@ -38,7 +38,7 @@ int pagemap_alloc(ptptr p) /* Realloc is trivial - we can't do anything useful */ int pagemap_realloc(uint16_t size) { - if (size >= MAP_SIZE) + if (size > MAP_SIZE) return ENOMEM; return 0; }