diff options
Diffstat (limited to 'arch/sh/mm/fault.c')
-rw-r--r-- | arch/sh/mm/fault.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/sh/mm/fault.c b/arch/sh/mm/fault.c index 16799f920f90..b0345f09c197 100644 --- a/arch/sh/mm/fault.c +++ b/arch/sh/mm/fault.c | |||
@@ -169,8 +169,8 @@ static noinline int vmalloc_fault(unsigned long address) | |||
169 | pmd_t *pmd_k; | 169 | pmd_t *pmd_k; |
170 | pte_t *pte_k; | 170 | pte_t *pte_k; |
171 | 171 | ||
172 | /* Make sure we are in vmalloc/module area: */ | 172 | /* Make sure we are in vmalloc/module/P3 area: */ |
173 | if (!is_vmalloc_addr((void *)address)) | 173 | if (!(address >= P3SEG && address < P3_ADDR_MAX)) |
174 | return -1; | 174 | return -1; |
175 | 175 | ||
176 | /* | 176 | /* |