public
/
FUZIX.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1836d1f
)
simple: Fix off by one
author
Alan Cox
<alan@linux.intel.com>
Tue, 11 Sep 2018 15:00:33 +0000
(16:00 +0100)
committer
Alan Cox
<alan@linux.intel.com>
Tue, 11 Sep 2018 15:00:33 +0000
(16:00 +0100)
Kernel/simple.c
patch
|
blob
|
history
diff --git
a/Kernel/simple.c
b/Kernel/simple.c
index
44e9816
..
b178a35
100644
(file)
--- 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;
}