Skip to content
Commit 76e9f0ee authored by Dan Williams's avatar Dan Williams
Browse files

phys_to_pfn_t: use phys_addr_t



A dma_addr_t is potentially smaller than a phys_addr_t on some archs.
Don't truncate the address when doing the pfn conversion.

Cc: Ross Zwisler <ross.zwisler@linux.intel.com>
Reported-by: default avatarMatthew Wilcox <willy@linux.intel.com>
[willy: fix pfn_t_to_phys as well]
Signed-off-by: default avatarDan Williams <dan.j.williams@intel.com>
parent 03fc2da6
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment