diff options
author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2008-02-29 15:18:44 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2008-02-29 15:18:44 -0800 |
commit | b73384f06159d8388d7d17913b7e3a07e234c1ab (patch) | |
tree | a904d01d583bdb7190cdb0e7da1c4b59bef45248 /arch/arm/mm/mmap.c | |
parent | c9e71002aacc9821e99531dcc130db88bbc8ad05 (diff) | |
parent | d862ccc570c875e1454fc57ed00f5a1081985b26 (diff) | |
download | kernel_samsung_smdk4412-b73384f06159d8388d7d17913b7e3a07e234c1ab.zip kernel_samsung_smdk4412-b73384f06159d8388d7d17913b7e3a07e234c1ab.tar.gz kernel_samsung_smdk4412-b73384f06159d8388d7d17913b7e3a07e234c1ab.tar.bz2 |
Merge branch 'for-linus' of master.kernel.org:/home/rmk/linux-2.6-arm
* 'for-linus' of master.kernel.org:/home/rmk/linux-2.6-arm:
[ARM] 4843/1: Add GCR_CLKBPB for PXA3xx
[ARM] 4842/1: pxa: remove redundant IRQ saving/restoring in clk_pxa3xx_cken_*
[ARM] 4841/1: pxa: fix typo in LCD platform data definition code for zylonite
[ARM] 4840/1: pxa: fix the typo in get_irqnr_and_base
[ARM] 4839/1: fixes kernel Oops in /dev/mem device driver for memory map with PHYS_OFF
[ARM] eliminate MODULE_PARM() usage
[ARM] 4838/1: Fix kexec for SA1100 machines
[ARM] 4837/1: make __get_unaligned_*() return unsigned types
[ARM] 4836/1: Make ATAGS_PROC depend on KEXEC
Diffstat (limited to 'arch/arm/mm/mmap.c')
-rw-r--r-- | arch/arm/mm/mmap.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mm/mmap.c b/arch/arm/mm/mmap.c index 2728b0e..3f6dc40 100644 --- a/arch/arm/mm/mmap.c +++ b/arch/arm/mm/mmap.c @@ -120,6 +120,8 @@ full_search: */ int valid_phys_addr_range(unsigned long addr, size_t size) { + if (addr < PHYS_OFFSET) + return 0; if (addr + size > __pa(high_memory)) return 0; |