]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/arm/mm/mmap.c
[ARM] Feroceon: allow more old Feroceon IDs
[linux-2.6-omap-h63xx.git] / arch / arm / mm / mmap.c
index 2c4c2422cd1e166e146ff631d40d1b629a1584e8..3f6dc40b835321fd469a23ce8ffa49089377e74b 100644 (file)
@@ -5,7 +5,7 @@
 #include <linux/mm.h>
 #include <linux/mman.h>
 #include <linux/shm.h>
-
+#include <linux/sched.h>
 #include <asm/system.h>
 
 #define COLOUR_ALIGN(addr,pgoff)               \
@@ -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;