diff options
Diffstat (limited to 'nuttx/libc/aio')
-rw-r--r-- | nuttx/libc/aio/aio_fsync.c | 1 | ||||
-rw-r--r-- | nuttx/libc/aio/aio_read.c | 1 | ||||
-rw-r--r-- | nuttx/libc/aio/aio_write.c | 1 | ||||
-rw-r--r-- | nuttx/libc/aio/lio_listio.c | 1 |
4 files changed, 3 insertions, 1 deletions
diff --git a/nuttx/libc/aio/aio_fsync.c b/nuttx/libc/aio/aio_fsync.c index b354ab479..8595f71b8 100644 --- a/nuttx/libc/aio/aio_fsync.c +++ b/nuttx/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/nuttx/libc/aio/aio_read.c b/nuttx/libc/aio/aio_read.c index bb15d7dac..e356305ec 100644 --- a/nuttx/libc/aio/aio_read.c +++ b/nuttx/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/nuttx/libc/aio/aio_write.c b/nuttx/libc/aio/aio_write.c index 7b17e7a42..87ea00373 100644 --- a/nuttx/libc/aio/aio_write.c +++ b/nuttx/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/nuttx/libc/aio/lio_listio.c b/nuttx/libc/aio/lio_listio.c index abdd46f73..c9843a533 100644 --- a/nuttx/libc/aio/lio_listio.c +++ b/nuttx/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 */ |