diff options
| author | Dan Williams <[email protected]> | 2016-01-26 17:48:05 +0000 |
|---|---|---|
| committer | Dan Williams <[email protected]> | 2016-01-31 17:07:15 +0000 |
| commit | 03fc2da63b9a33dce784a2075c7e068bb97cbf69 (patch) | |
| tree | 7d8bbc192f8468a8427f6f4704749ab140dcc10e /net/switchdev/switchdev.c | |
| parent | block: use DAX for partition table reads (diff) | |
| download | kernel-03fc2da63b9a33dce784a2075c7e068bb97cbf69.tar.gz kernel-03fc2da63b9a33dce784a2075c7e068bb97cbf69.zip | |
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: 01c8f1c44b83 ("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]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions
