diff options
author | Daniel Axtens <dja@axtens.net> | 2015-07-02 07:55:21 +0200 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2015-07-06 12:24:35 +0200 |
commit | 8c00d5c9d3e7452658dda55024485d52919ebfdd (patch) | |
tree | e34aec149f3b5701c62c41ad3aad23f990f7bcc1 /drivers/misc | |
parent | powerpc: Set the correct kernel taint on machine check errors. (diff) | |
download | linux-8c00d5c9d3e7452658dda55024485d52919ebfdd.tar.xz 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')
-rw-r--r-- | drivers/misc/cxl/pci.c | 2 |
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); |