]> git.proxmox.com Git - pve-qemu.git/blame - debian/patches/extra/0020-vga-fix-region-checks-in-wraparound-case.patch
bump version to 2.9.1-9
[pve-qemu.git] / debian / patches / extra / 0020-vga-fix-region-checks-in-wraparound-case.patch
CommitLineData
3dcc8d3b 1From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
c53dfb57
WB
2From: Gerd Hoffmann <kraxel@redhat.com>
3Date: Mon, 30 Oct 2017 11:28:30 +0100
3dcc8d3b 4Subject: [PATCH] vga: fix region checks in wraparound case
c53dfb57
WB
5
6Cc: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
7Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
8Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
9Message-id: 20171030102830.4469-1-kraxel@redhat.com
10---
11 hw/display/vga.c | 4 ++--
12 1 file changed, 2 insertions(+), 2 deletions(-)
13
14diff --git a/hw/display/vga.c b/hw/display/vga.c
15index 63ba404ef2..a58d8bcd67 100644
16--- a/hw/display/vga.c
17+++ b/hw/display/vga.c
18@@ -1666,9 +1666,9 @@ static void vga_draw_graphic(VGACommonState *s, int full_update)
19 /* scanline wraps from end of video memory to the start */
20 assert(force_shadow);
21 update = memory_region_snapshot_get_dirty(&s->vram, snap,
22- page0, 0);
23+ page0, s->vbe_size - page0);
24 update |= memory_region_snapshot_get_dirty(&s->vram, snap,
25- page1, 0);
26+ 0, page1);
27 } else {
28 update = memory_region_snapshot_get_dirty(&s->vram, snap,
29 page0, page1 - page0);
30--
312.11.0
32