summaryrefslogtreecommitdiff
path: root/Kernel/Syscalls/poll.cpp
diff options
context:
space:
mode:
authorHendiadyoin1 <leon2002.la@gmail.com>2021-12-18 18:39:18 +0100
committerBrian Gianforcaro <b.gianfo@gmail.com>2021-12-18 10:31:18 -0800
commitf38d32535c44069b4681e2d1a8b484e98dd5ab28 (patch)
tree25cd5566090309a9b28ae7a02f66c98a7d09a956 /Kernel/Syscalls/poll.cpp
parentc860e0ab9541c430fcbb48c39fcb8f487d5894ac (diff)
downloadserenity-f38d32535c44069b4681e2d1a8b484e98dd5ab28.zip
Kernel: Access OpenFileDescriptions::max_open() statically in Syscalls
Diffstat (limited to 'Kernel/Syscalls/poll.cpp')
-rw-r--r--Kernel/Syscalls/poll.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Syscalls/poll.cpp b/Kernel/Syscalls/poll.cpp
index 6b914cdc8c..670a1fa2a7 100644
--- a/Kernel/Syscalls/poll.cpp
+++ b/Kernel/Syscalls/poll.cpp
@@ -20,7 +20,7 @@ ErrorOr<FlatPtr> Process::sys$poll(Userspace<const Syscall::SC_poll_params*> use
REQUIRE_PROMISE(stdio);
auto params = TRY(copy_typed_from_user(user_params));
- if (params.nfds >= fds().max_open())
+ if (params.nfds >= OpenFileDescriptions::max_open())
return ENOBUFS;
Thread::BlockTimeout timeout;