All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] Add missing check for host_from_stream_offset return value for RAM_SAVE_FLAG_PAGE
@ 2012-06-19  8:51 Orit Wasserman
  2012-06-19 13:23 ` Juan Quintela
  0 siblings, 1 reply; 2+ messages in thread
From: Orit Wasserman @ 2012-06-19  8:51 UTC (permalink / raw)
  To: qemu-devel; +Cc: Orit Wasserman, aliguori, avi, ehabkost, quintela

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
---
 arch_init.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

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 @@ 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);
         }
-- 
1.7.7.6

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Qemu-devel] [PATCH] Add missing check for host_from_stream_offset return value for RAM_SAVE_FLAG_PAGE
  2012-06-19  8:51 [Qemu-devel] [PATCH] Add missing check for host_from_stream_offset return value for RAM_SAVE_FLAG_PAGE Orit Wasserman
@ 2012-06-19 13:23 ` Juan Quintela
  0 siblings, 0 replies; 2+ messages in thread
From: Juan Quintela @ 2012-06-19 13:23 UTC (permalink / raw)
  To: Orit Wasserman; +Cc: aliguori, qemu-devel, ehabkost, avi

Orit Wasserman <owasserm@redhat.com> wrote:
> Signed-off-by: Orit Wasserman <owasserm@redhat.com>

Reviewed-by: Juan Quintela <quintela@redhat.com> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-06-19 13:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-19  8:51 [Qemu-devel] [PATCH] Add missing check for host_from_stream_offset return value for RAM_SAVE_FLAG_PAGE Orit Wasserman
2012-06-19 13:23 ` Juan Quintela

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.