qemu-trivial
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] hw/display/vmware_vga: fix probably typo


From: Thomas Huth
Subject: Re: [PATCH] hw/display/vmware_vga: fix probably typo
Date: Mon, 13 Nov 2023 07:32:00 +0100
User-agent: Mozilla Thunderbird

On 10/11/2023 18.41, Alexandra Diupina wrote:
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>
---
  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)) {

That looks like a copy-n-paste bug, indeed!

Reviewed-by: Thomas Huth <thuth@redhat.com>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]