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

Merge pull request !1218 from hw_llm/master
This commit is contained in:
openharmony_ci 2024-08-23 09:27:21 +00:00 committed by Gitee
commit cab654a3fe
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 1 deletions

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