RTEMS | cpukit/aio_misc Add error handling for calloc failure (!513)

Kinsey Moore (@opticron) gitlab at rtems.org
Thu Jun 19 23:26:14 UTC 2025




Kinsey Moore started a new discussion on cpukit/posix/src/aio_misc.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/513#note_124983

 >        r_chain = NULL;
 >      } else {
 >        r_chain = calloc( 1, sizeof( rtems_aio_request_chain ) );
 > +      if ( r_chain == NULL ) {
 > +        errno = EAGAIN;

Is EAGAIN really the correct error for this failure? I would expect ENOMEM.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/513#note_124983
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/20250619/c4956173/attachment-0001.htm>


More information about the bugs mailing list