public
/
FUZIX.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1e5630a
)
bank8k: ho hum...
author
Alan Cox
<alan@linux.intel.com>
Tue, 6 Dec 2016 18:24:31 +0000
(18:24 +0000)
committer
Alan Cox
<alan@linux.intel.com>
Tue, 6 Dec 2016 18:24:31 +0000
(18:24 +0000)
Kernel/bank8k.c
patch
|
blob
|
history
diff --git
a/Kernel/bank8k.c
b/Kernel/bank8k.c
index
643a8f9
..
7d30770
100644
(file)
--- a/
Kernel/bank8k.c
+++ b/
Kernel/bank8k.c
@@
-150,7
+150,7
@@
int pagemap_alloc(ptptr p)
/* Allocate the pages upwards */
for (i = 0; i < needed; i++)
*ptr++ = pfree[--pfptr];
- while (i < PTNUM)
+ while (i
++
< PTNUM)
*ptr++ = PAGE_INVALID;
return 0;
}
@@
-183,7
+183,7
@@
int pagemap_realloc(usize_t size)
if (want < have) {
while(want < have) {
pfree[--pfptr] = ptr[want];
- ptr[want] = PAGE_INVALID;
+ ptr[want
++
] = PAGE_INVALID;
}
return 0;
}