Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mm: fix pfn_t to page conversion in vm_insert_mixed
pfn_t_to_page() honors the flags in the pfn_t value to determine if a pfn is backed by a page. However, vm_insert_mixed() was originally written to use pfn_valid() to make this determination. To restore the old/correct behavior, ignore the pfn_t flags in the !pfn_t_devmap() case and fallback to trusting pfn_valid(). Fixes: 01c8f1c ("mm, dax, gpu: convert vm_insert_mixed to pfn_t") Cc: Dave Hansen <[email protected]> Cc: David Airlie <[email protected]> Reported-by: Tomi Valkeinen <[email protected]> Tested-by: Tomi Valkeinen <[email protected]> Signed-off-by: Dan Williams <[email protected]>
- Loading branch information