diff options
-rw-r--r-- | savevm.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -476,6 +476,8 @@ static void qemu_fill_buffer(QEMUFile *f) if (len > 0) { f->buf_size += len; f->buf_offset += len; + } else if (len == 0) { + f->last_error = -EIO; } else if (len != -EAGAIN) f->last_error = len; } |