projects
/
kernel
/
kernel-generic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bfbedf7
)
sh: Don't factor in PAGE_OFFSET for valid_phys_addr_range() check.
author
Paul Mundt
<lethal@linux-sh.org>
Thu, 13 Nov 2008 06:38:02 +0000
(15:38 +0900)
committer
Paul Mundt
<lethal@linux-sh.org>
Thu, 13 Nov 2008 06:38:02 +0000
(15:38 +0900)
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/mm/mmap.c
patch
|
blob
|
history
diff --git
a/arch/sh/mm/mmap.c
b/arch/sh/mm/mmap.c
index
1f3cc3d
..
8837d51
100644
(file)
--- a/
arch/sh/mm/mmap.c
+++ b/
arch/sh/mm/mmap.c
@@
-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;