ia64/xen-unstable

changeset 19084:55bf9404a675

x86: Fix memory_is_conventional_ram() e820 entry size check.

Thanks to Joe Cihula for spotting this.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Sun Jan 25 10:12:38 2009 +0000 (2009-01-25)
parents af2ea4e48669
children ef156b933aad
files xen/arch/x86/mm.c
line diff
     1.1 --- a/xen/arch/x86/mm.c	Sat Jan 24 09:25:25 2009 +0000
     1.2 +++ b/xen/arch/x86/mm.c	Sun Jan 25 10:12:38 2009 +0000
     1.3 @@ -298,7 +298,7 @@ int memory_is_conventional_ram(paddr_t p
     1.4      {
     1.5          if ( (e820.map[i].type == E820_RAM) &&
     1.6               (e820.map[i].addr <= p) &&
     1.7 -             (e820.map[i].size > p) )
     1.8 +             ((e820.map[i].addr + e820.map[i].size) > p) )
     1.9              return 1;
    1.10      }
    1.11