diff options
author | Andi Kleen <ak@suse.de> | 2005-09-12 12:49:24 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-09-12 13:49:57 -0400 |
commit | 7c7a3897f678cfafebc8ec0a5e61a814f2f24e42 (patch) | |
tree | 4e51e1a3e00aac57f242b83bdb2f15b6a8ea1c13 /arch/x86_64 | |
parent | 117090b5e815d0075bff85c2be954d68a11ac4ed (diff) |
[PATCH] x86-64: Fix harmless off by one in e820 code
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/x86_64')
-rw-r--r-- | arch/x86_64/kernel/e820.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86_64/kernel/e820.c b/arch/x86_64/kernel/e820.c index bb0ae18ec02b..eb7929eea7b3 100644 --- a/arch/x86_64/kernel/e820.c +++ b/arch/x86_64/kernel/e820.c | |||
@@ -131,7 +131,7 @@ void __init e820_bootmem_free(pg_data_t *pgdat, unsigned long start,unsigned lon | |||
131 | 131 | ||
132 | if (ei->type != E820_RAM || | 132 | if (ei->type != E820_RAM || |
133 | ei->addr+ei->size <= start || | 133 | ei->addr+ei->size <= start || |
134 | ei->addr > end) | 134 | ei->addr >= end) |
135 | continue; | 135 | continue; |
136 | 136 | ||
137 | addr = round_up(ei->addr, PAGE_SIZE); | 137 | addr = round_up(ei->addr, PAGE_SIZE); |