Skip to contentSkip to conversation

drivers/kvm/mmu.c: fix an if() condition

PATCH Applied Adrian Bunk 2 participants 2 messages Apr 28, 2007 – Apr 29, 2007 KVM

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drivers/kvm/mmu.c: fix an if() condition

It might have worked in this case since PT_PRESENT_MASK is 1, but let's express this correctly.

---

drivers/kvm/mmu.c renamed from drivers/kvm/mmu.c.old +1 -1
@@ -1408,7 +1408,7 @@ static void audit_mappings_page(struct k
 	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);

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

Applied
#1 lore raw
Quoted 4 lines · Adrian Bunk

It might have worked in this case since PT_PRESENT_MASK is 1, but let's express this correctly.

Applied, thanks.

Signature · 8 lines
error compiling committee.c: too many arguments to function


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/