kernel/vm: Assert in vm_unreserve_memory that the amount is a multiple of PAGE_SIZE.

This commit is contained in:
Augustin Cavalier
2025-01-25 16:16:55 -05:00
parent 832cb40da9
commit 63215dbd2d
+2
View File
@@ -4779,6 +4779,8 @@ vm_kernel_address_space_left(void)
void
vm_unreserve_memory(size_t amount)
{
ASSERT((amount % B_PAGE_SIZE) == 0);
if (amount == 0)
return;