From 2f168d0708581c33baf6c78d75a89e8cd705f9f6 Mon Sep 17 00:00:00 2001 From: Dr. David Alan Gilbert Date: Mon, 25 Sep 2017 12:29:17 +0100 Subject: migration: Route more error paths vmstate_save_state is called in lots of places. Route error returns from the easier cases back up; there are lots of more complex cases where their own error paths need fixing. Signed-off-by: Dr. David Alan Gilbert Message-Id: <20170925112917.21340-7-dgilbert@redhat.com> Reviewed-by: Peter Xu Reviewed-by: Cornelia Huck Reviewed-by: Juan Quintela Signed-off-by: Dr. David Alan Gilbert Commit message fix up as Peter's review --- hw/display/virtio-gpu.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'hw/display') diff --git a/hw/display/virtio-gpu.c b/hw/display/virtio-gpu.c index 6b5f119d96..43bbe09ea0 100644 --- a/hw/display/virtio-gpu.c +++ b/hw/display/virtio-gpu.c @@ -1050,9 +1050,7 @@ static int virtio_gpu_save(QEMUFile *f, void *opaque, size_t size, } qemu_put_be32(f, 0); /* end of list */ - vmstate_save_state(f, &vmstate_virtio_gpu_scanouts, g, NULL); - - return 0; + return vmstate_save_state(f, &vmstate_virtio_gpu_scanouts, g, NULL); } static int virtio_gpu_load(QEMUFile *f, void *opaque, size_t size, -- cgit v1.2.3-55-g7522