raw-win32: Fix write request error handling
aio_worker() wrote the return code to the wrong variable. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Tested-by: Guangmu Zhu <guangmuzhu@gmail.com> Reviewed-by: Eric Blake <eblake@redhat.com>
This commit is contained in:
parent
ff770b07f3
commit
5d555030ba
@ -119,9 +119,9 @@ static int aio_worker(void *arg)
|
|||||||
case QEMU_AIO_WRITE:
|
case QEMU_AIO_WRITE:
|
||||||
count = handle_aiocb_rw(aiocb);
|
count = handle_aiocb_rw(aiocb);
|
||||||
if (count == aiocb->aio_nbytes) {
|
if (count == aiocb->aio_nbytes) {
|
||||||
count = 0;
|
ret = 0;
|
||||||
} else {
|
} else {
|
||||||
count = -EINVAL;
|
ret = -EINVAL;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case QEMU_AIO_FLUSH:
|
case QEMU_AIO_FLUSH:
|
||||||
|
Loading…
Reference in New Issue
Block a user