<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">
From: ebiederm@xmission.com (Eric W. Biederman)

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 &lt;ebiederm@xmission.com&gt;
Cc: Andi Kleen &lt;ak@suse.de&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
---

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

diff -puN arch/x86_64/kernel/e820.c~x86_64-fix-off-by-one-in-e820_mapped arch/x86_64/kernel/e820.c
--- devel/arch/x86_64/kernel/e820.c~x86_64-fix-off-by-one-in-e820_mapped	2005-07-29 13:08:31.000000000 -0700
+++ devel-akpm/arch/x86_64/kernel/e820.c	2005-07-29 13:08:31.000000000 -0700
@@ -85,7 +85,7 @@ int __init e820_mapped(unsigned long sta
 		struct e820entry *ei = &amp;e820.map[i]; 
 		if (type &amp;&amp; ei-&gt;type != type) 
 			continue;
-		if (ei-&gt;addr &gt;= end || ei-&gt;addr + ei-&gt;size &lt; start) 
+		if (ei-&gt;addr &gt;= end || ei-&gt;addr + ei-&gt;size &lt;= start)
 			continue; 
 		return 1; 
 	} 
_
</pre></body></html>