summaryrefslogtreecommitdiff
path: root/Kernel/API
diff options
context:
space:
mode:
authorBrian Gianforcaro <b.gianfo@gmail.com>2020-08-04 23:53:23 -0700
committerAndreas Kling <kling@serenityos.org>2020-08-05 13:03:50 +0200
commitfa666f68978cca0adeeb2cde0a54a9192bd737f6 (patch)
treee349b6cd3c99dcf98e7e827b1cf5ab058a313a5e /Kernel/API
parenta7a7e6245f74087641fa3f31436a14ab250bcea3 (diff)
downloadserenity-fa666f68978cca0adeeb2cde0a54a9192bd737f6.zip
Kernel: Use Userspace<T> for the futex syscall
Utilizie Userspace<T> for the syscall argument itself, as well as internally in the SC_futex_params struct. We were double validating the SC_futex_params.timeout validation, that was removed as well.
Diffstat (limited to 'Kernel/API')
-rw-r--r--Kernel/API/Syscall.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/API/Syscall.h b/Kernel/API/Syscall.h
index e952a10a0b..a782e34708 100644
--- a/Kernel/API/Syscall.h
+++ b/Kernel/API/Syscall.h
@@ -331,10 +331,10 @@ struct SC_getpeername_params {
};
struct SC_futex_params {
- i32* userspace_address;
+ Userspace<const i32*> userspace_address;
int futex_op;
i32 val;
- const timespec* timeout;
+ Userspace<const timespec*> timeout;
};
struct SC_setkeymap_params {