summaryrefslogtreecommitdiff
path: root/Kernel/Syscalls/open.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Kernel/Syscalls/open.cpp')
-rw-r--r--Kernel/Syscalls/open.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/Kernel/Syscalls/open.cpp b/Kernel/Syscalls/open.cpp
index 00593129e4..86775e436c 100644
--- a/Kernel/Syscalls/open.cpp
+++ b/Kernel/Syscalls/open.cpp
@@ -14,8 +14,7 @@ namespace Kernel {
KResultOr<FlatPtr> Process::sys$open(Userspace<const Syscall::SC_open_params*> user_params)
{
VERIFY_PROCESS_BIG_LOCK_ACQUIRED(this)
- Syscall::SC_open_params params;
- TRY(copy_from_user(&params, user_params));
+ auto params = TRY(copy_typed_from_user(user_params));
int dirfd = params.dirfd;
int options = params.options;