[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!");
|
||||
|
||||
Reference in New Issue
Block a user