From 33b1f59ee8284ffcd0751b5ae4ce0c59e12cd71a Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sun, 5 Oct 2014 12:34:22 -0600 Subject: [PATCH] Most paranoid changes to assure the state of things --- libc/aio/aio_fsync.c | 1 + libc/aio/aio_read.c | 1 + libc/aio/aio_write.c | 1 + libc/aio/lio_listio.c | 1 - 4 files changed, 3 insertions(+), 1 deletion(-) 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 */