RTEMS | fix(posix): Fix data races in aio_suspend (CID 1667293, 1642621) (!955)

MITHILESH MATTAPALLI (@mithileshm) gitlab at rtems.org
Sat Mar 28 12:18:02 UTC 2026




MITHILESH MATTAPALLI commented on a discussion on cpukit/posix/src/aio_suspend.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/955#note_147281

 >    }
 >  
 >    /* Control to ensure at least one operation completed */
 > -  for ( i = 0; i < nent; i++ ) {
 > -    if ( list[ i ] != NULL && list[ i ]->error_code == EINPROGRESS ) {
 > -      op_num--;
 > +  pthread_mutex_lock( &aio_request_queue.mutex );
 > +  for ( i = 0; i < nent; i++) {
 > +    if ( list[i] != NULL && list[i]->error_code == EINPROGRESS ) {
 > +      op_num --;

fixed it

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/955#note_147281
You're receiving this email because of your account on gitlab.rtems.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20260328/489cfde1/attachment.htm>


More information about the bugs mailing list