summaryrefslogtreecommitdiffstats
path: root/scripts/decodecode
diff options
context:
space:
mode:
authorJason Gunthorpe <jgg@mellanox.com>2020-03-05 17:00:22 +0100
committerJason Gunthorpe <jgg@mellanox.com>2020-03-26 18:33:37 +0100
commitc2579c9c4add3110b2ce81198f8a6bbb5055cfda (patch)
tree350e26c58812106943e104caa413004f61a9a977 /scripts/decodecode
parentmm/hmm: add missing pfns set to hmm_vma_walk_pmd() (diff)
downloadlinux-c2579c9c4add3110b2ce81198f8a6bbb5055cfda.tar.xz
linux-c2579c9c4add3110b2ce81198f8a6bbb5055cfda.zip
mm/hmm: add missing call to hmm_range_need_fault() before returning EFAULT
All return paths that do EFAULT must call hmm_range_need_fault() to determine if the user requires this page to be valid. If the page cannot be made valid if the user later requires it, due to vma flags in this case, then the return should be HMM_PFN_ERROR. Fixes: a3e0d41c2b1f ("mm/hmm: improve driver API to work and wait over a range") 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 'scripts/decodecode')
0 files changed, 0 insertions, 0 deletions