From 5e3a8f11b44885829de18326da6a647dad158b93 Mon Sep 17 00:00:00 2001 From: hw_llm Date: Fri, 23 Aug 2024 16:28:32 +0800 Subject: [PATCH] =?UTF-8?q?Description:=20syscall=20SysEpollWait=20?= =?UTF-8?q?=E6=89=A7=E8=A1=8C=E6=BC=8F=E6=B4=9E=E4=BF=AE=E5=A4=8D=20IssueN?= =?UTF-8?q?o:=20https://gitee.com/openharmony/kernel=5Fliteos=5Fa/issues/I?= =?UTF-8?q?ALYB5=3Ffrom=3Dproject-issue=20Feature=20Or=20Bugfix:=20Bugfix?= =?UTF-8?q?=20Binary=20Source:=20No=20Signed-off-by:=20hw=5Fllm=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fs/vfs/epoll/fs_epoll.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/vfs/epoll/fs_epoll.c b/fs/vfs/epoll/fs_epoll.c index 9252e80c..fdda62e1 100644 --- a/fs/vfs/epoll/fs_epoll.c +++ b/fs/vfs/epoll/fs_epoll.c @@ -326,7 +326,7 @@ int epoll_wait(int epfd, FAR struct epoll_event *evs, int maxevents, int timeout return -1; } - for (i = 0; i < epHead->nodeCount; i++) { + for (i = 0; i < pollSize; i++) { pFd[i].fd = epHead->evs[i].data.fd; pFd[i].events = (short)epHead->evs[i].events; }