Skip to content
  • Oliver O'Halloran's avatar
    nvdimm: fix PHYS_PFN/PFN_PHYS mixup · 480b6837
    Oliver O'Halloran authored
    
    
    nd_activate_region() iomaps any hint addresses required when activating
    a region. To prevent duplicate mappings it checks the PFN of the hint to
    be mapped against the PFNs of the already mapped hints. Unfortunately it
    doesn't convert the PFN back into a physical address before passing it
    to devm_nvdimm_ioremap(). Instead it applies PHYS_PFN a second time
    which ends about as well as you would imagine.
    
    Signed-off-by: default avatarOliver O'Halloran <oohall@gmail.com>
    Signed-off-by: default avatarDan Williams <dan.j.williams@intel.com>
    480b6837