提交 5d555030 编写于 作者: K Kevin Wolf

raw-win32: Fix write request error handling

aio_worker() wrote the return code to the wrong variable.
Signed-off-by: NKevin Wolf <kwolf@redhat.com>
Tested-by: NGuangmu Zhu <guangmuzhu@gmail.com>
Reviewed-by: NEric Blake <eblake@redhat.com>
上级 ff770b07
......@@ -119,9 +119,9 @@ static int aio_worker(void *arg)
case QEMU_AIO_WRITE:
count = handle_aiocb_rw(aiocb);
if (count == aiocb->aio_nbytes) {
count = 0;
ret = 0;
} else {
count = -EINVAL;
ret = -EINVAL;
}
break;
case QEMU_AIO_FLUSH:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册