diff options
Diffstat (limited to 'Kernel/Syscalls/open.cpp')
-rw-r--r-- | Kernel/Syscalls/open.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Kernel/Syscalls/open.cpp b/Kernel/Syscalls/open.cpp index 1957fc2ed2..00593129e4 100644 --- a/Kernel/Syscalls/open.cpp +++ b/Kernel/Syscalls/open.cpp @@ -15,8 +15,7 @@ KResultOr<FlatPtr> Process::sys$open(Userspace<const Syscall::SC_open_params*> u { VERIFY_PROCESS_BIG_LOCK_ACQUIRED(this) Syscall::SC_open_params params; - if (!copy_from_user(¶ms, user_params)) - return EFAULT; + TRY(copy_from_user(¶ms, user_params)); int dirfd = params.dirfd; int options = params.options; |