Skip to content

Commit

Permalink
KVM: fix an if() condition
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Adrian Bunk authored and Avi Kivity committed May 3, 2007
1 parent 2ab455c commit 2807696
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/kvm/mmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 2807696

Please sign in to comment.