mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:07:35 +00:00
Kernel: Avoid magic number in sys$poll
This commit is contained in:
parent
cc341c95aa
commit
c0692f1f95
1 changed files with 1 additions and 2 deletions
|
@ -147,8 +147,7 @@ int Process::sys$poll(Userspace<const Syscall::SC_poll_params*> user_params)
|
|||
if (!copy_from_user(¶ms, user_params))
|
||||
return -EFAULT;
|
||||
|
||||
// This limit is just a number from the place where numbers come from.
|
||||
if (params.nfds >= 16384)
|
||||
if (params.nfds >= m_max_open_file_descriptors)
|
||||
return -ENOBUFS;
|
||||
|
||||
Thread::BlockTimeout timeout;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue