Commit de7b685c authored by Michael R. Hines's avatar Michael R. Hines Committed by Juan Quintela
Browse files

rdma: bugfix: ram_control_save_page()

We were not checking for a valid 'bytes_sent' pointer before accessing it.
Reviewed-by: default avatarEric Blake <>
Signed-off-by: default avatarMichael R. Hines <>
Signed-off-by: default avatarJuan Quintela <>
parent a5f56b90
......@@ -662,7 +662,7 @@ size_t ram_control_save_page(QEMUFile *f, ram_addr_t block_offset,
offset, size, bytes_sent);
if (*bytes_sent > 0) {
if (bytes_sent && *bytes_sent > 0) {
qemu_update_position(f, *bytes_sent);
} else if (ret < 0) {
qemu_file_set_error(f, ret);
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