mirror of
https://github.com/justinian/jsix.git
synced 2025-12-10 08:24:32 -08:00
[kernel] fix frame_allocator::allocate return value
frame_allocator::allocate was returning the passed-in desired amount of pages, instead of the actual number allocated.
This commit is contained in:
@@ -70,7 +70,7 @@ frame_allocator::allocate(size_t count, uintptr_t *address)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return count;
|
return n;
|
||||||
}
|
}
|
||||||
|
|
||||||
kassert(false, "frame_allocator ran out of free frames!");
|
kassert(false, "frame_allocator ran out of free frames!");
|
||||||
|
|||||||
Reference in New Issue
Block a user