mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 06:47:35 +00:00
Kernel: Make VirtualRangeAllocator::carve_from_region OOM-fallible
This commit is contained in:
parent
85437abfad
commit
1e941fc3cc
2 changed files with 7 additions and 6 deletions
|
@ -31,7 +31,7 @@ public:
|
|||
bool contains(VirtualRange const& range) const { return m_total_range.contains(range); }
|
||||
|
||||
private:
|
||||
void carve_from_region(VirtualRange const& from, VirtualRange const&);
|
||||
ErrorOr<void> carve_from_region(VirtualRange const& from, VirtualRange const&);
|
||||
|
||||
RedBlackTree<FlatPtr, VirtualRange> m_available_ranges;
|
||||
VirtualRange m_total_range;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue