1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 14:07:46 +00:00

Kernel: Use Userspace<T> for the setsockopt syscall

This commit is contained in:
Brian Gianforcaro 2020-08-07 00:18:20 -07:00 committed by Andreas Kling
parent 9f685ac30a
commit 6920d5f423
7 changed files with 12 additions and 11 deletions

View file

@ -348,7 +348,7 @@ int Process::sys$getsockopt(const Syscall::SC_getsockopt_params* params)
return socket.getsockopt(*description, level, option, value, value_size);
}
int Process::sys$setsockopt(const Syscall::SC_setsockopt_params* user_params)
int Process::sys$setsockopt(Userspace<const Syscall::SC_setsockopt_params*> user_params)
{
Syscall::SC_setsockopt_params params;
if (!validate_read_and_copy_typed(&params, user_params))