[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-block] [PULL 2/7] file-posix: Fix fd_open check in raw_co_copy_ran
From: |
Max Reitz |
Subject: |
[Qemu-block] [PULL 2/7] file-posix: Fix fd_open check in raw_co_copy_range_to |
Date: |
Mon, 9 Jul 2018 20:58:23 +0200 |
From: Fam Zheng <address@hidden>
One of them is a typo. But update both to be more readable.
Reported-by: Kevin Wolf <address@hidden>
Signed-off-by: Fam Zheng <address@hidden>
Message-id: address@hidden
Reviewed-by: Stefan Hajnoczi <address@hidden>
Signed-off-by: Max Reitz <address@hidden>
---
block/file-posix.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/block/file-posix.c b/block/file-posix.c
index 98987b80f1..349f77a3af 100644
--- a/block/file-posix.c
+++ b/block/file-posix.c
@@ -2611,7 +2611,7 @@ static int coroutine_fn
raw_co_copy_range_to(BlockDriverState *bs,
}
src_s = src->bs->opaque;
- if (fd_open(bs) < 0 || fd_open(bs) < 0) {
+ if (fd_open(src->bs) < 0 || fd_open(dst->bs) < 0) {
return -EIO;
}
return paio_submit_co_full(bs, src_s->fd, src_offset, s->fd, dst_offset,
--
2.17.1
- [Qemu-block] [PULL 0/7] Block patches for 3.0-rc0, Max Reitz, 2018/07/09
- [Qemu-block] [PULL 1/7] qcow2: Drop unused cluster_data, Max Reitz, 2018/07/09
- [Qemu-block] [PULL 2/7] file-posix: Fix fd_open check in raw_co_copy_range_to,
Max Reitz <=
- [Qemu-block] [PULL 4/7] raw: Drop superfluous semicolon, Max Reitz, 2018/07/09
- [Qemu-block] [PULL 3/7] qcow2: Drop unreachable break, Max Reitz, 2018/07/09
- [Qemu-block] [PULL 6/7] iotests: Add VMDK backing file correlation test, Max Reitz, 2018/07/09
- [Qemu-block] [PULL 5/7] vmdk: Fix possible segfault with non-VMDK backing, Max Reitz, 2018/07/09
- [Qemu-block] [PULL 7/7] qcow2: add overlap check for bitmap directory, Max Reitz, 2018/07/09
- Re: [Qemu-block] [PULL 0/7] Block patches for 3.0-rc0, Peter Maydell, 2018/07/10