summaryrefslogtreecommitdiffstats
path: root/drivers/misc/cxl
diff options
context:
space:
mode:
authorDaniel Axtens <dja@axtens.net>2015-07-02 15:55:21 +1000
committerMichael Ellerman <mpe@ellerman.id.au>2015-07-06 20:24:35 +1000
commit8c00d5c9d3e7452658dda55024485d52919ebfdd (patch)
treee34aec149f3b5701c62c41ad3aad23f990f7bcc1 /drivers/misc/cxl
parent27ea2c420cad57386c25668cb9a9f0f082635586 (diff)
downloadtalos-op-linux-8c00d5c9d3e7452658dda55024485d52919ebfdd.tar.gz
talos-op-linux-8c00d5c9d3e7452658dda55024485d52919ebfdd.zip
cxl: Test the correct mmio space before unmapping
Before freeing p2n, test p2n, not p1n. Signed-off-by: Daniel Axtens <dja@axtens.net> Acked-by: Ian Munsie <imunsie@au1.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'drivers/misc/cxl')
-rw-r--r--drivers/misc/cxl/pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/cxl/pci.c b/drivers/misc/cxl/pci.c
index c68ef5806dbe..32ad09705949 100644
--- a/drivers/misc/cxl/pci.c
+++ b/drivers/misc/cxl/pci.c
@@ -539,7 +539,7 @@ err:
static void cxl_unmap_slice_regs(struct cxl_afu *afu)
{
- if (afu->p1n_mmio)
+ if (afu->p2n_mmio)
iounmap(afu->p2n_mmio);
if (afu->p1n_mmio)
iounmap(afu->p1n_mmio);
OpenPOWER on IntegriCloud