kernel/vm: Assert in vm_unreserve_memory that the amount is a multiple of PAGE_SIZE.
This commit is contained in:
@@ -4779,6 +4779,8 @@ vm_kernel_address_space_left(void)
|
|||||||
void
|
void
|
||||||
vm_unreserve_memory(size_t amount)
|
vm_unreserve_memory(size_t amount)
|
||||||
{
|
{
|
||||||
|
ASSERT((amount % B_PAGE_SIZE) == 0);
|
||||||
|
|
||||||
if (amount == 0)
|
if (amount == 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user