diff options
author | Jason Gunthorpe <jgg@mellanox.com> | 2020-03-05 19:00:22 +0300 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2020-03-26 20:33:37 +0300 |
commit | c2579c9c4add3110b2ce81198f8a6bbb5055cfda (patch) | |
tree | 350e26c58812106943e104caa413004f61a9a977 /init/do_mounts_rd.c | |
parent | 7d082987e5e562c07a208503a607a733d50553ba (diff) | |
download | linux-c2579c9c4add3110b2ce81198f8a6bbb5055cfda.tar.xz |
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 'init/do_mounts_rd.c')
0 files changed, 0 insertions, 0 deletions