[PATCH] x86_64: Fix off by one in e820_mapped
From: Eric W. Biederman
Date: Fri Jul 29 2005 - 14:01:09 EST
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@xxxxxxxxxxxx>
---
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;
}
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/