Skip to content
Snippets Groups Projects
Commit 4c7ae73c authored by Alexandra Diupina's avatar Alexandra Diupina Committed by Philippe Mathieu-Daudé
Browse files

hw/display/vmware_vga: fix probably typo


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: 02218aed ("hw/display/vmware_vga: replace fprintf calls with trace events")
Signed-off-by: default avatarAlexandra Diupina <adiupina@astralinux.ru>
Reviewed-by: default avatarThomas Huth <thuth@redhat.com>
Message-ID: <20231110174104.13280-1-adiupina@astralinux.ru>
Signed-off-by: default avatarPhilippe Mathieu-Daudé <philmd@linaro.org>
parent 52c773ce
No related branches found
No related tags found
No related merge requests found
......@@ -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)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment