[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [qemu-upstream-unstable] win32-aio: Fix vectored reads
commit cdb483457cdbd6012e336e40c12b4ace4f6f2a2f Author: Kevin Wolf <kwolf@xxxxxxxxxx> AuthorDate: Wed Jan 16 21:19:59 2013 +0100 Commit: Michael Roth <mdroth@xxxxxxxxxxxxxxxxxx> CommitDate: Mon Jan 21 13:24:00 2013 -0600 win32-aio: Fix vectored reads Copying data in the right direction really helps a lot! Cc: qemu-stable@xxxxxxxxxx Signed-off-by: Kevin Wolf <kwolf@xxxxxxxxxx> Signed-off-by: Stefan Hajnoczi <stefanha@xxxxxxxxxx> (cherry picked from commit bcbbd234d42f1111e42b91376db61922d42e7e9e) Signed-off-by: Michael Roth <mdroth@xxxxxxxxxxxxxxxxxx> --- block/win32-aio.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/block/win32-aio.c b/block/win32-aio.c index 4704ee0..6b02707 100644 --- a/block/win32-aio.c +++ b/block/win32-aio.c @@ -84,7 +84,7 @@ static void win32_aio_process_completion(QEMUWin32AIOState *s, int i; for (i = 0; i < qiov->niov; ++i) { - memcpy(p, qiov->iov[i].iov_base, qiov->iov[i].iov_len); + memcpy(qiov->iov[i].iov_base, p, qiov->iov[i].iov_len); p += qiov->iov[i].iov_len; } g_free(waiocb->buf); -- generated by git-patchbot for /home/xen/git/qemu-upstream-unstable.git _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |