summaryrefslogtreecommitdiff
path: root/Kernel
diff options
context:
space:
mode:
authorBrian Gianforcaro <b.gianfo@gmail.com>2020-08-09 15:30:11 -0700
committerAndreas Kling <kling@serenityos.org>2020-08-10 12:52:15 +0200
commitc8ae244ab8c65500ad940cdf4e3cd50068308e9f (patch)
tree86fb2ae713c57de114b55380a5c957d23ca53c1a /Kernel
parente073f2b59eb9bbfb5c9c3b754c4f037d0aaac894 (diff)
downloadserenity-c8ae244ab8c65500ad940cdf4e3cd50068308e9f.zip
Kernel: Use Userspace<T> for the shbuf_get syscall
Diffstat (limited to 'Kernel')
-rw-r--r--Kernel/Process.h2
-rw-r--r--Kernel/Syscalls/shbuf.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/Process.h b/Kernel/Process.h
index ffda74443d..83a3687efa 100644
--- a/Kernel/Process.h
+++ b/Kernel/Process.h
@@ -315,7 +315,7 @@ public:
int sys$shbuf_create(int, void** buffer);
int sys$shbuf_allow_pid(int, pid_t peer_pid);
int sys$shbuf_allow_all(int);
- void* sys$shbuf_get(int shbuf_id, size_t* size);
+ void* sys$shbuf_get(int shbuf_id, Userspace<size_t*> size);
int sys$shbuf_release(int shbuf_id);
int sys$shbuf_seal(int shbuf_id);
int sys$shbuf_set_volatile(int shbuf_id, bool);
diff --git a/Kernel/Syscalls/shbuf.cpp b/Kernel/Syscalls/shbuf.cpp
index 166569d40d..8f92562642 100644
--- a/Kernel/Syscalls/shbuf.cpp
+++ b/Kernel/Syscalls/shbuf.cpp
@@ -120,7 +120,7 @@ int Process::sys$shbuf_release(int shbuf_id)
return 0;
}
-void* Process::sys$shbuf_get(int shbuf_id, size_t* user_size)
+void* Process::sys$shbuf_get(int shbuf_id, Userspace<size_t*> user_size)
{
REQUIRE_PROMISE(shared_buffer);
if (user_size && !validate_write_typed(user_size))