diff options
author | Idan Horowitz <idan.horowitz@gmail.com> | 2022-02-13 21:21:14 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-02-13 23:02:57 +0100 |
commit | c8ab7bde3b9a75ec8b6706eda87daebc66624154 (patch) | |
tree | c4144cd0731dde8a37979378340360eb9d43f7c9 /Kernel/Syscalls/mmap.cpp | |
parent | 98c20b65cc1e436e805f066bf2b007ebf0a798ec (diff) | |
download | serenity-c8ab7bde3b9a75ec8b6706eda87daebc66624154.zip |
Kernel: Use try_make_weak_ptr() instead of make_weak_ptr()
Diffstat (limited to 'Kernel/Syscalls/mmap.cpp')
-rw-r--r-- | Kernel/Syscalls/mmap.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Syscalls/mmap.cpp b/Kernel/Syscalls/mmap.cpp index b408657a83..cfe775c20c 100644 --- a/Kernel/Syscalls/mmap.cpp +++ b/Kernel/Syscalls/mmap.cpp @@ -523,7 +523,7 @@ ErrorOr<FlatPtr> Process::sys$allocate_tls(Userspace<const char*> initial_data, auto range = TRY(address_space().try_allocate_range({}, size)); auto* region = TRY(address_space().allocate_region(range, "Master TLS"sv, PROT_READ | PROT_WRITE)); - m_master_tls_region = region->make_weak_ptr(); + m_master_tls_region = TRY(region->try_make_weak_ptr()); m_master_tls_size = size; m_master_tls_alignment = PAGE_SIZE; |