mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 12:49:19 +00:00
Kernel: Use Userspace<T> for the getsockname syscall
This commit is contained in:
parent
dc75ea9fc2
commit
8fa46bcb7d
Notes:
sideshowbarker
2024-07-19 04:09:58 +09:00
Author: https://github.com/bgianfo
Commit: 8fa46bcb7d
Pull-request: https://github.com/SerenityOS/serenity/pull/3039
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