diff options
author | Dr. David Alan Gilbert <dgilbert@redhat.com> | 2017-09-25 12:29:13 +0100 |
---|---|---|
committer | Dr. David Alan Gilbert <dgilbert@redhat.com> | 2017-09-27 11:36:31 +0100 |
commit | 551dbd0846d23e94dbc22dcfd9cf1f8dbbf403ad (patch) | |
tree | 7b2a5051afb4fd7e10ab4229c43d1ad7e421dae1 /include/migration | |
parent | 44b1ff319c4781c7ab13f7e119b3114a1e6a52e2 (diff) | |
download | qemu-551dbd0846d23e94dbc22dcfd9cf1f8dbbf403ad.zip qemu-551dbd0846d23e94dbc22dcfd9cf1f8dbbf403ad.tar.gz qemu-551dbd0846d23e94dbc22dcfd9cf1f8dbbf403ad.tar.bz2 |
migration: check pre_save return in vmstate_save_state
Check the return value of pre_save state and fail vmstate_save_state
if the pre_save failed.
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Message-Id: <20170925112917.21340-3-dgilbert@redhat.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Diffstat (limited to 'include/migration')
-rw-r--r-- | include/migration/vmstate.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/migration/vmstate.h b/include/migration/vmstate.h index da46b1a..88b55df 100644 --- a/include/migration/vmstate.h +++ b/include/migration/vmstate.h @@ -994,8 +994,8 @@ extern const VMStateInfo vmstate_info_qtailq; int vmstate_load_state(QEMUFile *f, const VMStateDescription *vmsd, void *opaque, int version_id); -void vmstate_save_state(QEMUFile *f, const VMStateDescription *vmsd, - void *opaque, QJSON *vmdesc); +int vmstate_save_state(QEMUFile *f, const VMStateDescription *vmsd, + void *opaque, QJSON *vmdesc); bool vmstate_save_needed(const VMStateDescription *vmsd, void *opaque); |