mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] x86_64: Fix off by one in e820_mapped
@ 2005-07-29 18:53 Eric W. Biederman
  2005-08-03 10:23 ` Andi Kleen
  0 siblings, 1 reply; 2+ messages in thread
From: Eric W. Biederman @ 2005-07-29 18:53 UTC (permalink / raw)
  To: Andi Kleen; +Cc: linux-kernel, Andrew Morton


This allows a valid iommu placed immediately after memory
to work, to be recognized as after the last byte of memory
and not overlapping it.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
---

 arch/x86_64/kernel/e820.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

a0929b87b8d0d059a10eb3e61da3d679d64980e1
diff --git a/arch/x86_64/kernel/e820.c b/arch/x86_64/kernel/e820.c
--- a/arch/x86_64/kernel/e820.c
+++ b/arch/x86_64/kernel/e820.c
@@ -85,7 +85,7 @@ int __init e820_mapped(unsigned long sta
 		struct e820entry *ei = &e820.map[i]; 
 		if (type && ei->type != type) 
 			continue;
-		if (ei->addr >= end || ei->addr + ei->size < start) 
+		if (ei->addr >= end || ei->addr + ei->size <= start) 
 			continue; 
 		return 1; 
 	} 

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

end of thread, other threads:[~2005-08-03 10:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-29 18:53 [PATCH] x86_64: Fix off by one in e820_mapped Eric W. Biederman
2005-08-03 10:23 ` Andi Kleen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®