mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 20:18:12 +00:00
Kernel: Use Userspace<T> in sys$select()
This commit is contained in:
parent
a1a82c1d95
commit
bebceaa32c
2 changed files with 3 additions and 3 deletions
|
@ -32,10 +32,10 @@
|
|||
|
||||
namespace Kernel {
|
||||
|
||||
KResultOr<int> Process::sys$select(const Syscall::SC_select_params* user_params)
|
||||
KResultOr<int> Process::sys$select(Userspace<const Syscall::SC_select_params*> user_params)
|
||||
{
|
||||
REQUIRE_PROMISE(stdio);
|
||||
Syscall::SC_select_params params;
|
||||
Syscall::SC_select_params params {};
|
||||
|
||||
if (!copy_from_user(¶ms, user_params))
|
||||
return EFAULT;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue