diff --git a/fs/vfs/fs_eventfd.c b/fs/vfs/fs_eventfd.c index 0f63df25dce..dd85f4eb20b 100644 --- a/fs/vfs/fs_eventfd.c +++ b/fs/vfs/fs_eventfd.c @@ -255,6 +255,8 @@ static int eventfd_blocking_io(FAR struct eventfd_priv_s *dev, cur_sem->next = sem->next; break; } + + cur_sem = cur_sem->next; } } diff --git a/fs/vfs/fs_timerfd.c b/fs/vfs/fs_timerfd.c index 5720b4f79fd..c3abb832dce 100644 --- a/fs/vfs/fs_timerfd.c +++ b/fs/vfs/fs_timerfd.c @@ -259,6 +259,8 @@ static int timerfd_blocking_io(FAR struct timerfd_priv_s *dev, cur_sem->next = sem->next; break; } + + cur_sem = cur_sem->next; } } }