diff --git a/libc/aio/aio_fsync.c b/libc/aio/aio_fsync.c index b354ab479c5..8595f71b849 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 bb15d7dac6e..e356305ecff 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 7b17e7a4228..87ea00373fd 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 abdd46f7326..c9843a53321 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 */