Skip to content

Commit

Permalink
x86: fix pagetable init 64-bit breakage
Browse files Browse the repository at this point in the history
Fix _end alignment check - can trigger a crash if _end happens to be
on a page boundary.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Suresh Siddha authored and Ingo Molnar committed Oct 10, 2008
1 parent 9542ada commit 28dd033
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/mm/init_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ static int is_kernel(unsigned long pfn)
unsigned long pg_addresss = pfn << PAGE_SHIFT;

if (pg_addresss >= (unsigned long) __pa(_text) &&
pg_addresss <= (unsigned long) __pa(_end))
pg_addresss < (unsigned long) __pa(_end))
return 1;

return 0;
Expand Down

0 comments on commit 28dd033

Please sign in to comment.