summaryrefslogtreecommitdiff
path: root/Kernel/Memory/AddressSpace.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-09-06 02:02:06 +0200
committerAndreas Kling <kling@serenityos.org>2021-09-06 02:02:06 +0200
commita994f11f1083a937ad171956e1d07a04bd0ba465 (patch)
tree64875079179badcd843d4dd39fab7f744fd23dd8 /Kernel/Memory/AddressSpace.h
parent062cc804e7e97cd77fe21296a9b6ccce7e6f2198 (diff)
downloadserenity-a994f11f1083a937ad171956e1d07a04bd0ba465.zip
Kernel: Make AddressSpace::add_region() return KResultOr<Region*>
This allows us to use TRY() in a few places.
Diffstat (limited to 'Kernel/Memory/AddressSpace.h')
-rw-r--r--Kernel/Memory/AddressSpace.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Memory/AddressSpace.h b/Kernel/Memory/AddressSpace.h
index 92b9de4d95..9617a54b1d 100644
--- a/Kernel/Memory/AddressSpace.h
+++ b/Kernel/Memory/AddressSpace.h
@@ -24,7 +24,7 @@ public:
PageDirectory& page_directory() { return *m_page_directory; }
const PageDirectory& page_directory() const { return *m_page_directory; }
- Region* add_region(NonnullOwnPtr<Region>);
+ KResultOr<Region*> add_region(NonnullOwnPtr<Region>);
size_t region_count() const { return m_regions.size(); }