summaryrefslogtreecommitdiff
path: root/Kernel/Syscalls/chown.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Kernel/Syscalls/chown.cpp')
-rw-r--r--Kernel/Syscalls/chown.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Syscalls/chown.cpp b/Kernel/Syscalls/chown.cpp
index 8de435c468..e07ab19f8a 100644
--- a/Kernel/Syscalls/chown.cpp
+++ b/Kernel/Syscalls/chown.cpp
@@ -42,7 +42,7 @@ int Process::sys$chown(Userspace<const Syscall::SC_chown_params*> user_params)
{
REQUIRE_PROMISE(chown);
Syscall::SC_chown_params params;
- if (!validate_read_and_copy_typed(&params, user_params))
+ if (!copy_from_user(&params, user_params))
return -EFAULT;
auto path = get_syscall_path_argument(params.path);
if (path.is_error())