diff --git a/libc/aio/aio_fsync.c b/libc/aio/aio_fsync.c index b354ab479c..8595f71b84 100644 --- a/libc/aio/aio_fsync.c +++ b/libc/aio/aio_fsync.c @@ -206,6 +206,7 @@ int aio_fsync(int op, FAR struct aiocb *aiocbp) /* The result -EINPROGRESS means that the transfer has not yet completed */ aiocbp->aio_result = -EINPROGRESS; + aiocbp->aio_priv = NULL; /* Save the ID of the calling, client thread */ diff --git a/libc/aio/aio_read.c b/libc/aio/aio_read.c index bb15d7dac6..e356305ecf 100644 --- a/libc/aio/aio_read.c +++ b/libc/aio/aio_read.c @@ -254,6 +254,7 @@ int aio_read(FAR struct aiocb *aiocbp) /* The result -EINPROGRESS means that the transfer has not yet completed */ aiocbp->aio_result = -EINPROGRESS; + aiocbp->aio_priv = NULL; /* Save the ID of the calling, client thread */ diff --git a/libc/aio/aio_write.c b/libc/aio/aio_write.c index 7b17e7a422..87ea00373f 100644 --- a/libc/aio/aio_write.c +++ b/libc/aio/aio_write.c @@ -287,6 +287,7 @@ int aio_write(FAR struct aiocb *aiocbp) /* The result -EINPROGRESS means that the transfer has not yet completed */ aiocbp->aio_result = -EINPROGRESS; + aiocbp->aio_priv = NULL; /* Save the ID of the calling, client thread */ diff --git a/libc/aio/lio_listio.c b/libc/aio/lio_listio.c index abdd46f732..c9843a5332 100644 --- a/libc/aio/lio_listio.c +++ b/libc/aio/lio_listio.c @@ -573,7 +573,6 @@ int lio_listio(int mode, FAR struct aiocb *const list[], int nent, status = OK; switch (aiocbp->aio_lio_opcode) { - case LIO_NOP: { /* Mark the do-nothing operation complete */