Commit fa39a30f authored by Juan Quintela's avatar Juan Quintela Committed by Anthony Liguori
Browse files

savevm: qemu_fille_buffer() used to return one error for reads of size 0.


Signed-off-by: default avatarJuan Quintela <quintela@redhat.com>
Signed-off-by: default avatarAnthony Liguori <aliguori@us.ibm.com>
parent db9eae1c
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment