!1220 SysEpollWait 系统调用使用正确长度。

Merge pull request !1220 from hw_llm/cherry-pick-1724401985
This commit is contained in:
openharmony_ci
2024-08-23 10:39:01 +00:00
committed by Gitee

View File

@@ -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;
}