migration: don't segfault on invalid input
authorMichael S. Tsirkin <mst@redhat.com>
Sun, 17 Oct 2010 18:43:40 +0000 (20:43 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 27 Oct 2010 16:54:02 +0000 (18:54 +0200)
commit583224f63feb2df42eea78f3dfec2e9dc7c7f69e
treedb540505d7716078ecca46cce645d90cd9538dc7
parentcf5d4b7110cb83534c2bc231cb03b708974ed8e2
migration: don't segfault on invalid input

host_from_stream_offset returns NULL on error,
return error instead of trying to use that address,
to avoid segfault on invalid stream.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
arch_init.c