X-Git-Url: http://nv-tegra.nvidia.com/gitweb/?p=linux-2.6.git;a=blobdiff_plain;f=arch%2Fx86%2Fmm%2Ffault.c;h=0a778e3c43ee42df8b71405c9f5e35bd49a411e4;hp=8c828a68d3b6a35588140944a797ff496066796e;hb=d763d5edf945eec47bd443b699f174976f0afc13;hpb=790e2a290b499b0400254e6870ec27969065d122 diff --git a/arch/x86/mm/fault.c b/arch/x86/mm/fault.c index 8c828a6..0a778e3 100644 --- a/arch/x86/mm/fault.c +++ b/arch/x86/mm/fault.c @@ -508,6 +508,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.