提交 7c7a3897 编写于 作者: A Andi Kleen 提交者: Linus Torvalds

[PATCH] x86-64: Fix harmless off by one in e820 code

Signed-off-by: NAndi Kleen <ak@suse.de>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 117090b5
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册