diff options
-rw-r--r-- | mm/pagewalk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/pagewalk.c b/mm/pagewalk.c index c3450d533611..606bbb4125d0 100644 --- a/mm/pagewalk.c +++ b/mm/pagewalk.c | |||
@@ -176,7 +176,7 @@ int walk_page_range(unsigned long addr, unsigned long end, | |||
176 | * we can't handled it in the same manner as non-huge pages. | 176 | * we can't handled it in the same manner as non-huge pages. |
177 | */ | 177 | */ |
178 | vma = find_vma(walk->mm, addr); | 178 | vma = find_vma(walk->mm, addr); |
179 | if (vma && is_vm_hugetlb_page(vma)) { | 179 | if (vma && vma->vm_start <= addr && is_vm_hugetlb_page(vma)) { |
180 | if (vma->vm_end < next) | 180 | if (vma->vm_end < next) |
181 | next = vma->vm_end; | 181 | next = vma->vm_end; |
182 | /* | 182 | /* |