mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-11-01 02:21:16 +00:00
mm: pagewalk: call pte_hole() for VM_PFNMAP during walk_page_range
walk_page_range silently skips vma having VM_PFNMAP set, which leads to undesirable behaviour at client end (who called walk_page_range). For example for pagemap_read, when no callbacks are called against VM_PFNMAP vma, pagemap_read may prepare pagemap data at wrong index. Change-Id: I057b5c8ede1ae4bb9e3f8639e10bd4fcbf23da7e Signed-off-by: Shiraz Hashim <shashim@codeaurora.org>
This commit is contained in:
parent
9b973c484d
commit
44ad70f1f0
1 changed files with 4 additions and 1 deletions
|
@ -199,7 +199,10 @@ int walk_page_range(unsigned long addr, unsigned long end,
|
|||
*/
|
||||
if ((vma->vm_start <= addr) &&
|
||||
(vma->vm_flags & VM_PFNMAP)) {
|
||||
next = vma->vm_end;
|
||||
if (walk->pte_hole)
|
||||
err = walk->pte_hole(addr, next, walk);
|
||||
if (err)
|
||||
break;
|
||||
pgd = pgd_offset(walk->mm, next);
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue