[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 2/5] hw/display/vmware_vga: fix probably typo
From: |
Philippe Mathieu-Daudé |
Subject: |
[PULL 2/5] hw/display/vmware_vga: fix probably typo |
Date: |
Mon, 13 Nov 2023 19:17:41 +0100 |
From: Alexandra Diupina <adiupina@astralinux.ru>
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 | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/hw/display/vmware_vga.c b/hw/display/vmware_vga.c
index 7490d43881..3f26bea190 100644
--- a/hw/display/vmware_vga.c
+++ b/hw/display/vmware_vga.c
@@ -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)) {
--
2.41.0
- [PULL 0/5] Misc fixes for 2023-11-13, Philippe Mathieu-Daudé, 2023/11/13
- [PULL 1/5] hw/mips: LOONGSON3V depends on UNIMP device, Philippe Mathieu-Daudé, 2023/11/13
- [PULL 2/5] hw/display/vmware_vga: fix probably typo,
Philippe Mathieu-Daudé <=
- [PULL 3/5] tests/avocado: add test to exercise processor address space memory bound checks, Philippe Mathieu-Daudé, 2023/11/13
- [PULL 4/5] tests/avocado/machine_s390_ccw_virtio.py: Fix SyntaxWarnings from python 3.12, Philippe Mathieu-Daudé, 2023/11/13
- [PULL 5/5] MAINTAINERS: update virtio-fs mailing list address, Philippe Mathieu-Daudé, 2023/11/13
- Re: [PULL 0/5] Misc fixes for 2023-11-13, Stefan Hajnoczi, 2023/11/14