[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:
Justin C. Miller
2021-02-02 18:36:28 -08:00
parent 68a2250886
commit 4985b2d1f4

View File

@@ -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!");