Most paranoid changes to assure the state of things

This commit is contained in:
Gregory Nutt 2014-10-05 12:34:22 -06:00
parent 697dfc6473
commit 33b1f59ee8
4 changed files with 3 additions and 1 deletions

View File

@ -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 */

View File

@ -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 */

View File

@ -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 */

View File

@ -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 */