aboutsummaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
Diffstat (limited to 'mm')
-rw-r--r--mm/vmalloc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/mm/vmalloc.c b/mm/vmalloc.c
index 6e45b0f3d125..dc41e9c8ca6f 100644
--- a/mm/vmalloc.c
+++ b/mm/vmalloc.c
@@ -180,6 +180,11 @@ struct page *vmalloc_to_page(const void *vmalloc_addr)
180 pmd_t *pmd; 180 pmd_t *pmd;
181 pte_t *ptep, pte; 181 pte_t *ptep, pte;
182 182
183 /* XXX we might need to change this if we add VIRTUAL_BUG_ON for
184 * architectures that do not vmalloc module space */
185 VIRTUAL_BUG_ON(!is_vmalloc_addr(vmalloc_addr) &&
186 !is_module_address(addr));
187
183 if (!pgd_none(*pgd)) { 188 if (!pgd_none(*pgd)) {
184 pud = pud_offset(pgd, addr); 189 pud = pud_offset(pgd, addr);
185 if (!pud_none(*pud)) { 190 if (!pud_none(*pud)) {