Skip to content

Commit

Permalink
sh: Don't factor in PAGE_OFFSET for valid_phys_addr_range() check.
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  • Loading branch information
Paul Mundt committed Nov 13, 2008
1 parent bfbedf7 commit 10840f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/sh/mm/mmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*/
int valid_phys_addr_range(unsigned long addr, size_t count)
{
if (addr < (PAGE_OFFSET + (PFN_START << PAGE_SHIFT)))
if (addr < __MEMORY_START)
return 0;
if (addr + count > __pa(high_memory))
return 0;
Expand Down

0 comments on commit 10840f0

Please sign in to comment.