1
Fork 0
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:
Idan Horowitz 2022-01-26 18:33:16 +02:00 committed by Linus Groh
parent 85437abfad
commit 1e941fc3cc
2 changed files with 7 additions and 6 deletions

View file

@ -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;