simple: Fix off by one
authorAlan Cox <alan@linux.intel.com>
Tue, 11 Sep 2018 15:00:33 +0000 (16:00 +0100)
committerAlan Cox <alan@linux.intel.com>
Tue, 11 Sep 2018 15:00:33 +0000 (16:00 +0100)
Kernel/simple.c

index 44e9816..b178a35 100644 (file)
@@ -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;
 }