diff options
Diffstat (limited to 'kernel/poll.c')
-rw-r--r-- | kernel/poll.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/poll.c b/kernel/poll.c index 8174657..7107646 100644 --- a/kernel/poll.c +++ b/kernel/poll.c @@ -18,7 +18,7 @@ int poll(struct pollfd *fds, size_t nfds, int timeout) { if (fds[i].fd < 0) { continue; } - vfs_fd_t *f = get_vfs_fd(fds[i].fd); + vfs_fd_t *f = get_vfs_fd(fds[i].fd, NULL); if (NULL == f) { continue; } @@ -51,7 +51,7 @@ int poll(struct pollfd *fds, size_t nfds, int timeout) { fds[i].revents = 0; continue; } - vfs_fd_t *f = get_vfs_fd(fds[i].fd); + vfs_fd_t *f = get_vfs_fd(fds[i].fd, NULL); if (!f) { if (fds[i].events & POLLHUP) { fds[i].revents |= POLLHUP; |