summaryrefslogtreecommitdiff
path: root/Kernel/Syscalls
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-08-07 21:32:30 +0200
committerAndreas Kling <kling@serenityos.org>2021-08-08 00:03:45 +0200
commit15d033b486eb5e10d80c785d69493ccd0cd56930 (patch)
treed3be33ca09cd962079e2cefcbd5a25c25f7aaf77 /Kernel/Syscalls
parent2362ebf483558e75e8450e775b36ec43e494bf4d (diff)
downloadserenity-15d033b486eb5e10d80c785d69493ccd0cd56930.zip
Kernel: Remove unused Process pointer in Memory::AddressSpace
Nobody was using the back-pointer to the process, so let's lose it.
Diffstat (limited to 'Kernel/Syscalls')
-rw-r--r--Kernel/Syscalls/execve.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Syscalls/execve.cpp b/Kernel/Syscalls/execve.cpp
index 1b5dfb53ca..437320f726 100644
--- a/Kernel/Syscalls/execve.cpp
+++ b/Kernel/Syscalls/execve.cpp
@@ -453,7 +453,7 @@ static KResultOr<LoadResult> load_elf_object(NonnullOwnPtr<Memory::AddressSpace>
KResultOr<LoadResult> Process::load(NonnullRefPtr<FileDescription> main_program_description,
RefPtr<FileDescription> interpreter_description, const ElfW(Ehdr) & main_program_header)
{
- auto new_space = Memory::AddressSpace::try_create(*this, nullptr);
+ auto new_space = Memory::AddressSpace::try_create(nullptr);
if (!new_space)
return ENOMEM;