Skip to content

Commit

Permalink
[PATCH] x86-64: Fix harmless off by one in e820 code
Browse files Browse the repository at this point in the history
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Andi Kleen authored and Linus Torvalds committed Sep 12, 2005
1 parent 117090b commit 7c7a389
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86_64/kernel/e820.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ void __init e820_bootmem_free(pg_data_t *pgdat, unsigned long start,unsigned lon

if (ei->type != E820_RAM ||
ei->addr+ei->size <= start ||
ei->addr > end)
ei->addr >= end)
continue;

addr = round_up(ei->addr, PAGE_SIZE);
Expand Down

0 comments on commit 7c7a389

Please sign in to comment.