forked from Bananymous/banan-os
Kernel: Heap will return 0 if no free page is available
This commit is contained in:
parent
0166af472b
commit
da7f09cf82
|
@ -57,7 +57,7 @@ namespace Kernel
|
||||||
for (auto& range : m_physical_ranges)
|
for (auto& range : m_physical_ranges)
|
||||||
if (paddr_t page = range.reserve_page())
|
if (paddr_t page = range.reserve_page())
|
||||||
return page;
|
return page;
|
||||||
ASSERT_NOT_REACHED();
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Heap::release_page(paddr_t addr)
|
void Heap::release_page(paddr_t addr)
|
||||||
|
|
Loading…
Reference in New Issue