mirror of
https://github.com/torvalds/linux.git
synced 2024-11-17 01:22:07 +00:00
sh: Don't factor in PAGE_OFFSET for valid_phys_addr_range() check.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
This commit is contained in:
parent
bfbedf787c
commit
10840f034e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user