mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-03-16 20:14:24 +00:00
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: d08faca018
("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>
This commit is contained in:
parent
05fc1df95e
commit
7d082987e5
1 changed files with 1 additions and 1 deletions
2
mm/hmm.c
2
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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue