RTEMS | fix(posix): Fix data races in aio_suspend (CID 1667293, 1642621) (!955)
Kinsey Moore (@opticron)
gitlab at rtems.org
Thu Mar 26 03:43:09 UTC 2026
Kinsey Moore started a new discussion on cpukit/posix/src/aio_suspend.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/955#note_147110
> }
>
> /* 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 --;
This appears to undo the formatting changes on these lines.
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/955#note_147110
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/20260326/c73af2f6/attachment-0001.htm>
More information about the bugs
mailing list