From: Thomas Huth <thuth@redhat.com>
To: Alexandra Diupina <adiupina@astralinux.ru>,
"Michael S. Tsirkin" <mst@redhat.com>,
Gerd Hoffmann <kraxel@redhat.com>,
Dmitry Fleytman <dmitry.fleytman@gmail.com>
Cc: Markus Armbruster <armbru@redhat.com>,
Juan Quintela <quintela@redhat.com>,
qemu-devel@nongnu.org, sdl.qemu@linuxtesting.org,
QEMU Trivial <qemu-trivial@nongnu.org>
Subject: Re: [PATCH] hw/display/vmware_vga: fix probably typo
Date: Mon, 13 Nov 2023 07:32:00 +0100 [thread overview]
Message-ID: <3038fea2-36c9-47e0-a6b3-069cdabb228a@redhat.com> (raw)
In-Reply-To: <20231110174104.13280-1-adiupina@astralinux.ru>
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>
next prev parent reply other threads:[~2023-11-13 6:32 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-10 17:41 [PATCH] hw/display/vmware_vga: fix probably typo Alexandra Diupina
2023-11-13 6:32 ` Thomas Huth [this message]
2023-11-13 15:55 ` Philippe Mathieu-Daudé
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3038fea2-36c9-47e0-a6b3-069cdabb228a@redhat.com \
--to=thuth@redhat.com \
--cc=adiupina@astralinux.ru \
--cc=armbru@redhat.com \
--cc=dmitry.fleytman@gmail.com \
--cc=kraxel@redhat.com \
--cc=mst@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-trivial@nongnu.org \
--cc=quintela@redhat.com \
--cc=sdl.qemu@linuxtesting.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).