vmstate: Return error in case of error
authorJuan Quintela <quintela@redhat.com>
Sat, 5 Apr 2014 18:16:22 +0000 (20:16 +0200)
committerJuan Quintela <quintela@redhat.com>
Mon, 23 Jun 2014 17:14:52 +0000 (19:14 +0200)
commit13cde50889237a516c76f38a93d7bcac3cf915da
tree1d7de9536c4226d12854ad9865ff52458667c5e1
parent25feab2fc248628df318a09c4da06e972a01247a
vmstate: Return error in case of error

If there is an error while loading a field, we should stop reading and
not continue with the rest of fields.  And we should also set an error
in qemu_file.

Signed-off-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
vmstate.c