diff options
Diffstat (limited to 'arch/x86/mm/fault.c')
-rw-r--r-- | arch/x86/mm/fault.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/x86/mm/fault.c b/arch/x86/mm/fault.c index 343f5c1aacc8..42394b353c6a 100644 --- a/arch/x86/mm/fault.c +++ b/arch/x86/mm/fault.c | |||
@@ -551,6 +551,11 @@ static int vmalloc_fault(unsigned long address) | |||
551 | unsigned long pgd_paddr; | 551 | unsigned long pgd_paddr; |
552 | pmd_t *pmd_k; | 552 | pmd_t *pmd_k; |
553 | pte_t *pte_k; | 553 | pte_t *pte_k; |
554 | |||
555 | /* Make sure we are in vmalloc area */ | ||
556 | if (!(address >= VMALLOC_START && address < VMALLOC_END)) | ||
557 | return -1; | ||
558 | |||
554 | /* | 559 | /* |
555 | * Synchronize this task's top level page-table | 560 | * Synchronize this task's top level page-table |
556 | * with the 'reference' page table. | 561 | * with the 'reference' page table. |