]>
Commit | Line | Data |
---|---|---|
af64ed13 SR |
1 | From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 |
2 | From: Gerd Hoffmann <kraxel@redhat.com> | |
3 | Date: Fri, 10 Sep 2021 11:42:03 +0200 | |
4 | Subject: [PATCH] qxl: fix pre-save logic | |
5 | MIME-Version: 1.0 | |
6 | Content-Type: text/plain; charset=UTF-8 | |
7 | Content-Transfer-Encoding: 8bit | |
8 | ||
9 | Oops. Logic is backwards. | |
10 | ||
11 | Fixes: 39b8a183e2f3 ("qxl: remove assert in qxl_pre_save.") | |
12 | Resolves: https://gitlab.com/qemu-project/qemu/-/issues/610 | |
13 | Resolves: https://bugzilla.redhat.com//show_bug.cgi?id=2002907 | |
14 | Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> | |
15 | Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> | |
16 | Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> | |
17 | Message-Id: <20210910094203.3582378-1-kraxel@redhat.com> | |
18 | --- | |
19 | hw/display/qxl.c | 2 +- | |
20 | 1 file changed, 1 insertion(+), 1 deletion(-) | |
21 | ||
22 | diff --git a/hw/display/qxl.c b/hw/display/qxl.c | |
23 | index 43482d4364..29c80b4289 100644 | |
24 | --- a/hw/display/qxl.c | |
25 | +++ b/hw/display/qxl.c | |
26 | @@ -2252,7 +2252,7 @@ static int qxl_pre_save(void *opaque) | |
27 | } else { | |
28 | d->last_release_offset = (uint8_t *)d->last_release - ram_start; | |
29 | } | |
30 | - if (d->last_release_offset < d->vga.vram_size) { | |
31 | + if (d->last_release_offset >= d->vga.vram_size) { | |
32 | return 1; | |
33 | } | |
34 |