Commit 0ff1f9f5 authored by Orit Wasserman's avatar Orit Wasserman Committed by Juan Quintela

Add missing check for host_from_stream_offset return value for RAM_SAVE_FLAG_PAGE

Signed-off-by: default avatarOrit Wasserman <>
parent 71ea2e01
......@@ -483,6 +483,9 @@ int ram_load(QEMUFile *f, void *opaque, int version_id)
void *host;
host = host_from_stream_offset(f, addr, flags);
if (!host) {
return -EINVAL;
qemu_get_buffer(f, host, TARGET_PAGE_SIZE);
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