mm/hmm: add missing pfns set to hmm_vma_walk_pmd()
authorJason Gunthorpe <jgg@mellanox.com>
Wed, 4 Mar 2020 20:25:56 +0000 (16:25 -0400)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 26 Mar 2020 17:33:37 +0000 (14:33 -0300)
commit7d082987e5e562c07a208503a607a733d50553ba
tree94d90c3fc82ad15635620bc8a908839b6265c5a5
parent05fc1df95e5dc09802813bab9c1e718f1e419d93
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>
mm/hmm.c