|
From: | Philippe Mathieu-Daudé |
Subject: | Re: [PATCH] spapr: nested: use bitwise NOT operator for flags check |
Date: | Fri, 29 Mar 2024 13:38:24 +0100 |
User-agent: | Mozilla Thunderbird |
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 in Thread] | Current Thread | [Next in Thread] |