From: "Philippe Mathieu-Daudé" <philmd@linaro.org>
To: Harsh Prateek Bora <harshpb@linux.ibm.com>,
npiggin@gmail.com, qemu-ppc@nongnu.org
Cc: mikey@neuling.org, danielhb413@gmail.com, qemu-devel@nongnu.org,
peter.maydell@linaro.org
Subject: Re: [PATCH] spapr: nested: use bitwise NOT operator for flags check
Date: Fri, 29 Mar 2024 13:38:24 +0100 [thread overview]
Message-ID: <b70a3345-0e68-4e2d-888a-10c0922f07dd@linaro.org> (raw)
In-Reply-To: <20240329043436.2857533-1-harshpb@linux.ibm.com>
On 29/3/24 05:34, Harsh Prateek Bora wrote:
> Check for flag bit in H_GUEST_GETSET_STATE_FLAG_GUEST_WIDE need to use
> bitwise NOT operator to ensure no other flag bits are set.
> Reported by Coverity as CID 1540008, 1540009.
>
> Reported-by: Peter Maydell <peter.maydell@linaro.org>
> Signed-off by: Harsh Prateek Bora <harshpb@linux.ibm.com>
> ---
> hw/ppc/spapr_nested.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
prev parent reply other threads:[~2024-03-29 12:39 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-29 4:34 [PATCH] spapr: nested: use bitwise NOT operator for flags check Harsh Prateek Bora
2024-03-29 12:38 ` Philippe Mathieu-Daudé [this message]
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=b70a3345-0e68-4e2d-888a-10c0922f07dd@linaro.org \
--to=philmd@linaro.org \
--cc=danielhb413@gmail.com \
--cc=harshpb@linux.ibm.com \
--cc=mikey@neuling.org \
--cc=npiggin@gmail.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@nongnu.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).