summaryrefslogtreecommitdiff
path: root/src/mm/heap.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mm/heap.c')
-rw-r--r--src/mm/heap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mm/heap.c b/src/mm/heap.c
index 6254bbc..e0b7208 100644
--- a/src/mm/heap.c
+++ b/src/mm/heap.c
@@ -149,7 +149,7 @@ heap_malloc_pages(struct heap *heap, uint32_t pages)
uint32_t start_page = heap_get_start_page(heap, pages);
- if (!start_page)
+ if (start_page < 0)
goto out;
addr = heap_page_to_addr(heap, start_page);