Skip to content

Commit

Permalink
[SPARC64]: Solidify check in cheetah_check_main_memory().
Browse files Browse the repository at this point in the history
Need to make sure the address is below high_memory before
passing it to kern_addr_valid().

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Sep 29, 2005
1 parent 1014757 commit ed3ffaf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions arch/sparc64/kernel/traps.c
Original file line number Diff line number Diff line change
Expand Up @@ -1333,6 +1333,9 @@ static int cheetah_check_main_memory(unsigned long paddr)
{
unsigned long vaddr = PAGE_OFFSET + paddr;

if (vaddr > high_memory)
return 0;

return kern_addr_valid(vaddr);
}

Expand Down

0 comments on commit ed3ffaf

Please sign in to comment.