From 825a63cc01176fd8d044e9bade1a4b24a90dd206 Mon Sep 17 00:00:00 2001 From: hw_llm Date: Fri, 23 Aug 2024 16:28:32 +0800 Subject: [PATCH] =?UTF-8?q?cherry=20pick=205e3a8f1=20from=20https://gitee.?= =?UTF-8?q?com/hw=5Fllm/kernel=5Fliteos=5Fa/pulls/1218=20Description:=20sy?= =?UTF-8?q?scall=20SysEpollWait=20=E6=89=A7=E8=A1=8C=E6=BC=8F=E6=B4=9E?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20IssueNo:=20https://gitee.com/openharmony/k?= =?UTF-8?q?ernel=5Fliteos=5Fa/issues/IALYB5=3Ffrom=3Dproject-issue=20Featu?= =?UTF-8?q?re=20Or=20Bugfix:=20Bugfix=20Binary=20Source:=20No=20Signed-off?= =?UTF-8?q?-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; }