summaryrefslogtreecommitdiff
path: root/Kernel/VM/AnonymousVMObject.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-07-11 19:07:00 +0200
committerAndreas Kling <kling@serenityos.org>2021-07-11 19:09:02 +0200
commitf244a25f71e1d445558aed26a0042714c4add137 (patch)
tree09c8a240f7eb348b197df130393506e0b3a3b644 /Kernel/VM/AnonymousVMObject.h
parentd85bce57b3168c792422f8392cfaee098829de94 (diff)
downloadserenity-f244a25f71e1d445558aed26a0042714c4add137.zip
Kernel: Rename VMObject::clone() => try_clone()
And fix an unsafe dereference in SharedInodeVMObject::try_clone() to make it OOM-safe.
Diffstat (limited to 'Kernel/VM/AnonymousVMObject.h')
-rw-r--r--Kernel/VM/AnonymousVMObject.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/VM/AnonymousVMObject.h b/Kernel/VM/AnonymousVMObject.h
index 5b072f45ea..72acbe7cb6 100644
--- a/Kernel/VM/AnonymousVMObject.h
+++ b/Kernel/VM/AnonymousVMObject.h
@@ -25,7 +25,7 @@ public:
static RefPtr<AnonymousVMObject> try_create_for_physical_range(PhysicalAddress paddr, size_t size);
static RefPtr<AnonymousVMObject> try_create_with_physical_page(PhysicalPage& page);
static RefPtr<AnonymousVMObject> try_create_with_physical_pages(NonnullRefPtrVector<PhysicalPage>);
- virtual RefPtr<VMObject> clone() override;
+ virtual RefPtr<VMObject> try_clone() override;
RefPtr<PhysicalPage> allocate_committed_page(size_t);
PageFaultResponse handle_cow_fault(size_t, VirtualAddress);