]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
hw/display/vmware_vga: fix probably typo
authorAlexandra Diupina <adiupina@astralinux.ru>
Fri, 10 Nov 2023 17:41:04 +0000 (20:41 +0300)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Mon, 13 Nov 2023 15:56:24 +0000 (16:56 +0100)
When calling trace_vmware_verify_rect_greater_than_bound() replace
"y" with "h" and y with h

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Fixes: 02218aedb1 ("hw/display/vmware_vga: replace fprintf calls with trace events")
Signed-off-by: Alexandra Diupina <adiupina@astralinux.ru>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-ID: <20231110174104.13280-1-adiupina@astralinux.ru>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
hw/display/vmware_vga.c

index 7490d4388112b2929c99f11982248ccccadd62c4..3f26bea1904b290d107bcb599278fc761ba85eae 100644 (file)
@@ -336,8 +336,8 @@ static inline bool vmsvga_verify_rect(DisplaySurface *surface,
         return false;
     }
     if (h > SVGA_MAX_HEIGHT) {
-        trace_vmware_verify_rect_greater_than_bound(name, "y", SVGA_MAX_HEIGHT,
-                                                    y);
+        trace_vmware_verify_rect_greater_than_bound(name, "h", SVGA_MAX_HEIGHT,
+                                                    h);
         return false;
     }
     if (y + h > surface_height(surface)) {