diff options
author | Adrian Bunk <bunk@stusta.de> | 2007-04-28 23:20:48 +0400 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2007-05-03 11:52:31 +0400 |
commit | 2807696c3791d6dd1dcf20f022eaa2dc7615bc5d (patch) | |
tree | 7a5161b93b9f15264b741aede046992594287d2b /drivers | |
parent | 2ab455ccceb07945368709ba852e49f4c3119331 (diff) | |
download | linux-2807696c3791d6dd1dcf20f022eaa2dc7615bc5d.tar.xz |
KVM: fix an if() condition
It might have worked in this case since PT_PRESENT_MASK is 1, but let's
express this correctly.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/kvm/mmu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/kvm/mmu.c b/drivers/kvm/mmu.c index 32c64f682081..e8e228118de9 100644 --- a/drivers/kvm/mmu.c +++ b/drivers/kvm/mmu.c @@ -1408,7 +1408,7 @@ static void audit_mappings_page(struct kvm_vcpu *vcpu, u64 page_pte, for (i = 0; i < PT64_ENT_PER_PAGE; ++i, va += va_delta) { u64 ent = pt[i]; - if (!ent & PT_PRESENT_MASK) + if (!(ent & PT_PRESENT_MASK)) continue; va = canonicalize(va); |