[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4E1CA7D6.4090203@web.de>
Date: Tue, 12 Jul 2011 22:00:22 +0200
From: Jan Kiszka <jan.kiszka@....de>
To: Avi Kivity <avi@...hat.com>, Marcelo Tosatti <mtosatti@...hat.com>
CC: Xiao Guangrong <xiaoguangrong@...fujitsu.com>,
LKML <linux-kernel@...r.kernel.org>, KVM <kvm@...r.kernel.org>
Subject: [PATCH] KVM: x86: Apply required parentheses in __check_direct_spte_mmio_pf
From: Jan Kiszka <jan.kiszka@...mens.com>
Comparison takes precedence over bitwise &, but the latter needs to be
evaluated first here.
Signed-off-by: Jan Kiszka <jan.kiszka@...mens.com>
---
Avi, how's your 32-bit buildbot?
arch/x86/kvm/mmu.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c
index d3d188e..9335e1b 100644
--- a/arch/x86/kvm/mmu.c
+++ b/arch/x86/kvm/mmu.c
@@ -448,7 +448,7 @@ static bool __check_direct_spte_mmio_pf(u64 spte)
/* It is valid if the spte is being zapped. */
if (sspte.spte_low == 0ull &&
- sspte.spte_high & high_mmio_mask == high_mmio_mask)
+ (sspte.spte_high & high_mmio_mask) == high_mmio_mask)
return true;
return false;
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists