diff options
author | Brian Gianforcaro <b.gianfo@gmail.com> | 2020-08-09 15:36:41 -0700 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-08-10 12:52:15 +0200 |
commit | c4927ceb08d445d96258a1b788604ec86af80715 (patch) | |
tree | 73bee0493c8d959c66e8285dc8cbe0c5d61a7f37 /Kernel | |
parent | b5a2a215f62be9604c8da4cdf3aa9c2996569642 (diff) | |
download | serenity-c4927ceb08d445d96258a1b788604ec86af80715.zip |
Kernel: Use Userspace<T> for the module_load syscall
Diffstat (limited to 'Kernel')
-rw-r--r-- | Kernel/Process.h | 2 | ||||
-rw-r--r-- | Kernel/Syscalls/module.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/Process.h b/Kernel/Process.h index 956759a258..9171c68d58 100644 --- a/Kernel/Process.h +++ b/Kernel/Process.h @@ -325,7 +325,7 @@ public: int sys$realpath(Userspace<const Syscall::SC_realpath_params*>); ssize_t sys$getrandom(Userspace<void*>, size_t, unsigned int); int sys$setkeymap(Userspace<const Syscall::SC_setkeymap_params*>); - int sys$module_load(const char* path, size_t path_length); + int sys$module_load(Userspace<const char*> path, size_t path_length); int sys$module_unload(const char* name, size_t name_length); int sys$profiling_enable(pid_t); int sys$profiling_disable(pid_t); diff --git a/Kernel/Syscalls/module.cpp b/Kernel/Syscalls/module.cpp index 85d0ef49b8..46dcc80ef9 100644 --- a/Kernel/Syscalls/module.cpp +++ b/Kernel/Syscalls/module.cpp @@ -35,7 +35,7 @@ namespace Kernel { extern HashMap<String, OwnPtr<Module>>* g_modules; -int Process::sys$module_load(const char* user_path, size_t path_length) +int Process::sys$module_load(Userspace<const char*> user_path, size_t path_length) { if (!is_superuser()) return -EPERM; |