From f225881dddbbe58e04d328b46d63ab3027ced173 Mon Sep 17 00:00:00 2001 From: Will Sowerbutts Date: Sat, 27 Dec 2014 14:39:26 +0000 Subject: [PATCH] Kernel: Bug fix -- bankfixed pagemap_realloc() check was too strict --- Kernel/bankfixed.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.34.1