[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 1/4] qemu_file: Fix mismerge of "use fwrite() correc
From: |
Amit Shah |
Subject: |
[Qemu-devel] [PATCH 1/4] qemu_file: Fix mismerge of "use fwrite() correctly" |
Date: |
Fri, 7 Mar 2014 01:33:35 +0530 |
From: Markus Armbruster <address@hidden>
Reviewers accepted v2 of the patch, but what got committed was v1,
with the R-bys for v2. This is the v1->v2 followup fix.
[Amit:
This fixes commit aded6539d983280212e08d09f14157b1cb4d58cc
]
Signed-off-by: Markus Armbruster <address@hidden>
Reviewed-by: Eric Blake <address@hidden>
Reviewed-by: Amit Shah <address@hidden>
Signed-off-by: Amit Shah <address@hidden>
---
qemu-file.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/qemu-file.c b/qemu-file.c
index f074af1..e5ec798 100644
--- a/qemu-file.c
+++ b/qemu-file.c
@@ -105,7 +105,7 @@ static int stdio_put_buffer(void *opaque, const uint8_t
*buf, int64_t pos,
res = fwrite(buf, 1, size, s->stdio_file);
if (res != size) {
- return -EIO; /* fake errno value */
+ return -errno;
}
return res;
}
--
1.8.5.3
- [Qemu-devel] [PULL] migration patches, Amit Shah, 2014/03/06
- [Qemu-devel] [PATCH 1/4] qemu_file: Fix mismerge of "use fwrite() correctly",
Amit Shah <=
- [Qemu-devel] [PATCH 2/4] vl: add system_wakeup_request tracepoint, Amit Shah, 2014/03/06
- [Qemu-devel] [PATCH 3/4] migration: extend section_start/end traces, Amit Shah, 2014/03/06
- [Qemu-devel] [PATCH 4/4] migration: add more traces, Amit Shah, 2014/03/06
- Re: [Qemu-devel] [PULL] migration patches, Juan Quintela, 2014/03/07
- Re: [Qemu-devel] [PULL] migration patches, Peter Maydell, 2014/03/08