Kernel: Heap will return 0 if no free page is available

This commit is contained in:
Bananymous 2023-06-03 02:55:31 +03:00
parent 0166af472b
commit da7f09cf82
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ namespace Kernel
for (auto& range : m_physical_ranges)
if (paddr_t page = range.reserve_page())
return page;
ASSERT_NOT_REACHED();
return 0;
}
void Heap::release_page(paddr_t addr)