Alessandro Nardin commented on a discussion on cpukit/posix/src/aio_suspend.c: 
https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/275#note_116974

 > +    /* Search request in fd_chain */
 > +    request = rtems_aio_search_in_chain( list[i], &r_chain->perfd );
 > +      
 > +    if ( request != NULL ) {
 > +      if ( request->suspendcbp == NULL ) {
 > +        request->suspendcbp = suspendcbp;
 > +      }
 > +      suspendcbp->requests_left++;
 > +    }
 > +    /* Request not present */
 > +  }
 > +
 > +  if ( suspendcbp->requests_left <= 0 ) {
 > +    pthread_mutex_unlock( &aio_request_queue.mutex );
 > +    pthread_mutex_unlock( &suspendcbp->mutex );
 > +    free( suspendcbp );

Added where it was missing.

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


_______________________________________________
bugs mailing list
bugs@rtems.org
http://lists.rtems.org/mailman/listinfo/bugs

Reply via email to