diff options
| author | Oliver O'Halloran <[email protected]> | 2016-09-19 10:19:00 +0000 |
|---|---|---|
| committer | Dan Williams <[email protected]> | 2016-09-19 15:54:27 +0000 |
| commit | 480b6837aa579991c6acc113bccf838e6a90843c (patch) | |
| tree | 71aca7c1b20a42e451eca88044a2a81a777e827a /net/switchdev/switchdev.c | |
| parent | Linux 4.8-rc7 (diff) | |
| download | kernel-480b6837aa579991c6acc113bccf838e6a90843c.tar.gz kernel-480b6837aa579991c6acc113bccf838e6a90843c.zip | |
nvdimm: fix PHYS_PFN/PFN_PHYS mixup
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: Oliver O'Halloran <[email protected]>
Signed-off-by: Dan Williams <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions
