mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05:57:44 +00:00
Kernel: Use Userspace<T> for the getsockname syscall
This commit is contained in:
parent
dc75ea9fc2
commit
8fa46bcb7d
3 changed files with 4 additions and 4 deletions
|
@ -300,7 +300,7 @@ int Process::get_sock_or_peer_name(const Params& params)
|
|||
return 0;
|
||||
}
|
||||
|
||||
int Process::sys$getsockname(const Syscall::SC_getsockname_params* user_params)
|
||||
int Process::sys$getsockname(Userspace<const Syscall::SC_getsockname_params*> user_params)
|
||||
{
|
||||
Syscall::SC_getsockname_params params;
|
||||
if (!validate_read_and_copy_typed(¶ms, user_params))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue