aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2021-09-10 11:42:03 +0200
committerMichael Roth <michael.roth@amd.com>2021-12-15 07:13:12 -0600
commit34833f361b1407ad7b4f02ed5eb852e76ab032e4 (patch)
treed66960aa908a2032f0e7284179d342e104ada217 /hw
parent43583f0c079b084ada9214c00125e21bbfc6266a (diff)
qxl: fix pre-save logic
Oops. Logic is backwards. Fixes: 39b8a183e2f3 ("qxl: remove assert in qxl_pre_save.") Resolves: https://gitlab.com/qemu-project/qemu/-/issues/610 Resolves: https://bugzilla.redhat.com//show_bug.cgi?id=2002907 Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <20210910094203.3582378-1-kraxel@redhat.com> (cherry picked from commit eb94846280df3f1e2a91b6179fc05f9890b7e384) Signed-off-by: Michael Roth <michael.roth@amd.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/display/qxl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/display/qxl.c b/hw/display/qxl.c
index 43482d4364..29c80b4289 100644
--- a/hw/display/qxl.c
+++ b/hw/display/qxl.c
@@ -2252,7 +2252,7 @@ static int qxl_pre_save(void *opaque)
} else {
d->last_release_offset = (uint8_t *)d->last_release - ram_start;
}
- if (d->last_release_offset < d->vga.vram_size) {
+ if (d->last_release_offset >= d->vga.vram_size) {
return 1;
}