summaryrefslogtreecommitdiff
path: root/nuttx
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-10-05 12:34:22 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-10-05 12:34:22 -0600
commitb7d9b699cb5310a2be1196c73495f827608285b4 (patch)
treeca49f80584b6678e2c12fb8bbcb333055d3f0393 /nuttx
parentc679e4a45ed6fc366ba21f6a05967746cb407fbb (diff)
downloadpx4-nuttx-b7d9b699cb5310a2be1196c73495f827608285b4.tar.gz
px4-nuttx-b7d9b699cb5310a2be1196c73495f827608285b4.tar.bz2
px4-nuttx-b7d9b699cb5310a2be1196c73495f827608285b4.zip
Most paranoid changes to assure the state of things
Diffstat (limited to 'nuttx')
-rw-r--r--nuttx/libc/aio/aio_fsync.c1
-rw-r--r--nuttx/libc/aio/aio_read.c1
-rw-r--r--nuttx/libc/aio/aio_write.c1
-rw-r--r--nuttx/libc/aio/lio_listio.c1
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 */