linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [2.6 patch] drivers/kvm/mmu.c: fix an if() condition
@ 2007-04-28 19:20 Adrian Bunk
  2007-04-29  7:59 ` Avi Kivity
  0 siblings, 1 reply; 2+ messages in thread
From: Adrian Bunk @ 2007-04-28 19:20 UTC (permalink / raw)
  To: avi; +Cc: kvm-devel, linux-kernel

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);

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [2.6 patch] drivers/kvm/mmu.c: fix an if() condition
  2007-04-28 19:20 [2.6 patch] drivers/kvm/mmu.c: fix an if() condition Adrian Bunk
@ 2007-04-29  7:59 ` Avi Kivity
  0 siblings, 0 replies; 2+ messages in thread
From: Avi Kivity @ 2007-04-29  7:59 UTC (permalink / raw)
  To: Adrian Bunk; +Cc: kvm-devel, linux-kernel

Adrian Bunk wrote:
> It might have worked in this case since PT_PRESENT_MASK is 1, but let's 
> express this correctly.
>
>   

Applied, thanks.


-- 
error compiling committee.c: too many arguments to function


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-04-29  7:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-28 19:20 [2.6 patch] drivers/kvm/mmu.c: fix an if() condition Adrian Bunk
2007-04-29  7:59 ` Avi Kivity

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).