summaryrefslogtreecommitdiff
path: root/Kernel
diff options
context:
space:
mode:
authorBrian Gianforcaro <b.gianfo@gmail.com>2020-08-04 22:16:59 -0700
committerAndreas Kling <kling@serenityos.org>2020-08-05 09:36:53 +0200
commit1eeaed31c2fa533d38ecfb9ac18e7233eb34a4c0 (patch)
tree6ea43af7740e503368c12b417214e4f8b4b233fd /Kernel
parentf3eb7db4224fff3ec235341e854a3e90d3fd4a1d (diff)
downloadserenity-1eeaed31c2fa533d38ecfb9ac18e7233eb34a4c0.zip
Kernel: Use Userspace<T> for the open syscall
Diffstat (limited to 'Kernel')
-rw-r--r--Kernel/Process.h2
-rw-r--r--Kernel/Syscalls/open.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/Process.h b/Kernel/Process.h
index 5380a442ae..12e4d373cb 100644
--- a/Kernel/Process.h
+++ b/Kernel/Process.h
@@ -211,7 +211,7 @@ public:
int sys$getresuid(uid_t*, uid_t*, uid_t*);
int sys$getresgid(gid_t*, gid_t*, gid_t*);
mode_t sys$umask(mode_t);
- int sys$open(const Syscall::SC_open_params*);
+ int sys$open(Userspace<const Syscall::SC_open_params*>);
int sys$close(int fd);
ssize_t sys$read(int fd, Userspace<u8*>, ssize_t);
ssize_t sys$write(int fd, const u8*, ssize_t);
diff --git a/Kernel/Syscalls/open.cpp b/Kernel/Syscalls/open.cpp
index 840b00c911..0d8a3d5e48 100644
--- a/Kernel/Syscalls/open.cpp
+++ b/Kernel/Syscalls/open.cpp
@@ -31,7 +31,7 @@
namespace Kernel {
-int Process::sys$open(const Syscall::SC_open_params* user_params)
+int Process::sys$open(Userspace<const Syscall::SC_open_params*> user_params)
{
Syscall::SC_open_params params;
if (!validate_read_and_copy_typed(&params, user_params))