Kernel: Bug fix -- bankfixed pagemap_realloc() check was too strict
authorWill Sowerbutts <will@sowerbutts.com>
Sat, 27 Dec 2014 14:39:26 +0000 (14:39 +0000)
committerWill Sowerbutts <will@sowerbutts.com>
Sat, 27 Dec 2014 14:40:57 +0000 (14:40 +0000)
Kernel/bankfixed.c

index e671ffd..397e0c3 100644 (file)
@@ -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;
 }