mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 08:48:11 +00:00
Kernel: Avoid an allocation in sys$poll
This commit is contained in:
parent
277f333b2b
commit
7dc77bd833
1 changed files with 1 additions and 1 deletions
|
@ -150,7 +150,7 @@ KResultOr<int> Process::sys$poll(Userspace<const Syscall::SC_poll_params*> user_
|
|||
if (params.sigmask && !copy_from_user(&sigmask, params.sigmask))
|
||||
return EFAULT;
|
||||
|
||||
Vector<pollfd> fds_copy;
|
||||
Vector<pollfd, FD_SETSIZE> fds_copy;
|
||||
if (params.nfds > 0) {
|
||||
Checked nfds_checked = sizeof(pollfd);
|
||||
nfds_checked *= params.nfds;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue