diff options
author | Jason Gunthorpe <[email protected]> | 2020-03-05 12:00:22 -0400 |
---|---|---|
committer | Jason Gunthorpe <[email protected]> | 2020-03-26 14:33:37 -0300 |
commit | c2579c9c4add3110b2ce81198f8a6bbb5055cfda (patch) | |
tree | 350e26c58812106943e104caa413004f61a9a977 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 7d082987e5e562c07a208503a607a733d50553ba (diff) |
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 <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions