posix/aio_misc.c: Added returns on error path in rtems_aio_init()

Coverity CID 1619695

Added returns on error path in rtems_aio_init().
Without them the code could access uninitialized memory.

Closes #5132.
This commit is contained in:
alessandronardin
2024-09-26 19:09:35 +02:00
parent 617808b979
commit 653dbdcdbf
2 changed files with 12 additions and 6 deletions
+1
View File
@@ -224,6 +224,7 @@ extern rtems_aio_queue aio_request_queue;
* @brief Initialize the request queue for AIO Operations.
*
* @retval 0 The queue has bees succesfully initialized.
* @retval -1 An error occured while initializing the queue.
*/
int rtems_aio_init( void );