From a994f11f1083a937ad171956e1d07a04bd0ba465 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Mon, 6 Sep 2021 02:02:06 +0200 Subject: Kernel: Make AddressSpace::add_region() return KResultOr This allows us to use TRY() in a few places. --- Kernel/Memory/AddressSpace.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Kernel/Memory/AddressSpace.h') 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); + KResultOr add_region(NonnullOwnPtr); size_t region_count() const { return m_regions.size(); } -- cgit v1.2.3