commit | 0ff1f9f585712684dc46cb6cb6a46a8cc160b2ae | [log] [tgz] |
---|---|---|
author | Orit Wasserman <[email protected]> | Tue Jun 19 11:51:37 2012 +0300 |
committer | Juan Quintela <[email protected]> | Fri Jun 29 10:38:28 2012 +0200 |
tree | b85c1a9f3d85af4168d7ebaed97267bfdd2e3d13 | |
parent | 71ea2e016131a9fcde6f1ffd3e0e34a64c21f593 [diff] |
Add missing check for host_from_stream_offset return value for RAM_SAVE_FLAG_PAGE Signed-off-by: Orit Wasserman <[email protected]>
diff --git a/arch_init.c b/arch_init.c index a9e8b74..81c2e54 100644 --- a/arch_init.c +++ b/arch_init.c
@@ -483,6 +483,9 @@ void *host; host = host_from_stream_offset(f, addr, flags); + if (!host) { + return -EINVAL; + } qemu_get_buffer(f, host, TARGET_PAGE_SIZE); }