]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/x86/mm/fault.c
Merge branch 'linus' into tracing/ftrace
[linux-2.6-omap-h63xx.git] / arch / x86 / mm / fault.c
index 343f5c1aacc89e63417ff6b42dd8d3c2f95a3e43..42394b353c6a10df0175d8f684780d2376bb6707 100644 (file)
@@ -551,6 +551,11 @@ static int vmalloc_fault(unsigned long address)
        unsigned long pgd_paddr;
        pmd_t *pmd_k;
        pte_t *pte_k;
+
+       /* Make sure we are in vmalloc area */
+       if (!(address >= VMALLOC_START && address < VMALLOC_END))
+               return -1;
+
        /*
         * Synchronize this task's top level page-table
         * with the 'reference' page table.