projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
540e6d5
)
x86: Fix memory_is_conventional_ram() e820 entry size check.
author
Keir Fraser
<keir.fraser@citrix.com>
Sun, 25 Jan 2009 10:12:38 +0000
(10:12 +0000)
committer
Keir Fraser
<keir.fraser@citrix.com>
Sun, 25 Jan 2009 10:12:38 +0000
(10:12 +0000)
Thanks to Joe Cihula for spotting this.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen/arch/x86/mm.c
patch
|
blob
|
history
diff --git
a/xen/arch/x86/mm.c
b/xen/arch/x86/mm.c
index 7b04ae5c973f24fd9f64abbc4cb9bde341e06bce..b4d8a8792a8f5567d3e2f44839d6975431bfbac6 100644
(file)
--- a/
xen/arch/x86/mm.c
+++ b/
xen/arch/x86/mm.c
@@
-298,7
+298,7
@@
int memory_is_conventional_ram(paddr_t p)
{
if ( (e820.map[i].type == E820_RAM) &&
(e820.map[i].addr <= p) &&
- (
e820.map[i].size
> p) )
+ (
(e820.map[i].addr + e820.map[i].size)
> p) )
return 1;
}