[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] x86: Fix memory_is_conventional_ram() e820 entry size check.



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1232878358 0
# Node ID 55bf9404a675357c5e0a00a49313124a2e77aaa8
# Parent  af2ea4e48669c447edcd245c17d0ffa8a953f162
x86: Fix memory_is_conventional_ram() e820 entry size check.

Thanks to Joe Cihula for spotting this.

Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
---
 xen/arch/x86/mm.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r af2ea4e48669 -r 55bf9404a675 xen/arch/x86/mm.c
--- a/xen/arch/x86/mm.c Sat Jan 24 09:25:25 2009 +0000
+++ b/xen/arch/x86/mm.c Sun Jan 25 10:12:38 2009 +0000
@@ -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;
     }
 

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.