| Submitter | Kevin Wolf |
|---|---|
| Date | April 6, 2010, 4:24 p.m. |
| Message ID | <1270571047-1208-2-git-send-email-kwolf@redhat.com> |
| Download | mbox | patch |
| Permalink | /patch/49528/ |
| State | New |
| Headers | show |
Comments
Patch
diff --git a/block.c b/block.c index 9233af1..ae5aba3 100644 --- a/block.c +++ b/block.c @@ -1890,10 +1890,10 @@ int bdrv_aio_multiwrite(BlockDriverState *bs, BlockRequest *reqs, int num_reqs) // submitted yet. Otherwise we'll wait for the submitted AIOs to // complete and report the error in the callback. if (mcb->num_requests == 0) { - reqs[i].error = EIO; + reqs[i].error = -EIO; goto fail; } else { - mcb->error = EIO; + mcb->error = -EIO; break; } } else {
Signed-off-by: Kevin Wolf <kwolf@redhat.com> --- block.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)