From bebceaa32ce53ad7042673ce01f497da0d3bade4 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Mon, 1 Mar 2021 15:07:01 +0100 Subject: Kernel: Use Userspace in sys$select() --- Kernel/Process.h | 2 +- Kernel/Syscalls/select.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'Kernel') diff --git a/Kernel/Process.h b/Kernel/Process.h index 263b099cb2..68dc13539d 100644 --- a/Kernel/Process.h +++ b/Kernel/Process.h @@ -259,7 +259,7 @@ public: KResultOr sys$madvise(void*, size_t, int advice); KResultOr sys$msyscall(void*); KResultOr sys$purge(int mode); - KResultOr sys$select(const Syscall::SC_select_params*); + KResultOr sys$select(Userspace); KResultOr sys$poll(Userspace); KResultOr sys$get_dir_entries(int fd, Userspace, ssize_t); KResultOr sys$getcwd(Userspace, size_t); diff --git a/Kernel/Syscalls/select.cpp b/Kernel/Syscalls/select.cpp index 4076a871d0..969de51286 100644 --- a/Kernel/Syscalls/select.cpp +++ b/Kernel/Syscalls/select.cpp @@ -32,10 +32,10 @@ namespace Kernel { -KResultOr Process::sys$select(const Syscall::SC_select_params* user_params) +KResultOr Process::sys$select(Userspace user_params) { REQUIRE_PROMISE(stdio); - Syscall::SC_select_params params; + Syscall::SC_select_params params {}; if (!copy_from_user(¶ms, user_params)) return EFAULT; -- cgit v1.2.3