login
Header Space

 
 

[2.6 patch] drivers/kvm/mmu.c: fix an if() condition

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <avi@...>
Cc: <kvm-devel@...>, <linux-kernel@...>
Date: Saturday, April 28, 2007 - 3:20 pm

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>

---
--- linux-2.6.21-rc7-mm2/drivers/kvm/mmu.c.old	2007-04-28 18:05:13.000000000 +0200
+++ linux-2.6.21-rc7-mm2/drivers/kvm/mmu.c	2007-04-28 18:05:54.000000000 +0200
@@ -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);
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[2.6 patch] drivers/kvm/mmu.c: fix an if() condition, Adrian Bunk, (Sat Apr 28, 3:20 pm)
speck-geostationary