summaryrefslogtreecommitdiffstats
path: root/mm/hmm.c
diff options
context:
space:
mode:
authorJason Gunthorpe <jgg@mellanox.com>2020-03-04 21:25:56 +0100
committerJason Gunthorpe <jgg@mellanox.com>2020-03-26 18:33:37 +0100
commit7d082987e5e562c07a208503a607a733d50553ba (patch)
tree94d90c3fc82ad15635620bc8a908839b6265c5a5 /mm/hmm.c
parentmm/hmm: do not call hmm_vma_walk_hole() while holding a spinlock (diff)
downloadlinux-7d082987e5e562c07a208503a607a733d50553ba.tar.xz
linux-7d082987e5e562c07a208503a607a733d50553ba.zip
mm/hmm: add missing pfns set to hmm_vma_walk_pmd()
All success exit paths from the walker functions must set the pfns array. A migration entry with no required fault is a HMM_PFN_NONE return, just like the pte case. Fixes: d08faca018c4 ("mm/hmm: properly handle migration pmd") Reviewed-by: Ralph Campbell <rcampbell@nvidia.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'mm/hmm.c')
-rw-r--r--mm/hmm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/hmm.c b/mm/hmm.c
index 0e7a57246f03..09fc4569468e 100644
--- a/mm/hmm.c
+++ b/mm/hmm.c
@@ -402,7 +402,7 @@ again:
pmd_migration_entry_wait(walk->mm, pmdp);
return -EBUSY;
}
- return 0;
+ return hmm_pfns_fill(start, end, range, HMM_PFN_NONE);
} else if (!pmd_present(pmd))
return hmm_pfns_fill(start, end, range, HMM_PFN_ERROR);