diff options
Diffstat (limited to 'Kernel/Memory')
-rw-r--r-- | Kernel/Memory/AnonymousVMObject.cpp | 2 | ||||
-rw-r--r-- | Kernel/Memory/InodeVMObject.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Kernel/Memory/AnonymousVMObject.cpp b/Kernel/Memory/AnonymousVMObject.cpp index 38c5cf9e44..a55d0225c3 100644 --- a/Kernel/Memory/AnonymousVMObject.cpp +++ b/Kernel/Memory/AnonymousVMObject.cpp @@ -253,7 +253,7 @@ NonnullRefPtr<PhysicalPage> AnonymousVMObject::allocate_committed_page(Badge<Reg Bitmap& AnonymousVMObject::ensure_cow_map() { if (m_cow_map.is_null()) - m_cow_map = Bitmap { page_count(), true }; + m_cow_map = Bitmap::try_create(page_count(), true).release_value_but_fixme_should_propagate_errors(); return m_cow_map; } diff --git a/Kernel/Memory/InodeVMObject.cpp b/Kernel/Memory/InodeVMObject.cpp index da88ba7084..9642454416 100644 --- a/Kernel/Memory/InodeVMObject.cpp +++ b/Kernel/Memory/InodeVMObject.cpp @@ -12,14 +12,14 @@ namespace Kernel::Memory { InodeVMObject::InodeVMObject(Inode& inode, FixedArray<RefPtr<PhysicalPage>>&& new_physical_pages) : VMObject(move(new_physical_pages)) , m_inode(inode) - , m_dirty_pages(page_count(), false) + , m_dirty_pages(Bitmap::try_create(page_count(), false).release_value_but_fixme_should_propagate_errors()) { } InodeVMObject::InodeVMObject(InodeVMObject const& other, FixedArray<RefPtr<PhysicalPage>>&& new_physical_pages) : VMObject(move(new_physical_pages)) , m_inode(other.m_inode) - , m_dirty_pages(page_count(), false) + , m_dirty_pages(Bitmap::try_create(page_count(), false).release_value_but_fixme_should_propagate_errors()) { for (size_t i = 0; i < page_count(); ++i) m_dirty_pages.set(i, other.m_dirty_pages.get(i)); |