projects
/
platform
/
kernel
/
linux-amlogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
27ea2c4
)
cxl: Test the correct mmio space before unmapping
author
Daniel Axtens
<dja@axtens.net>
Thu, 2 Jul 2015 05:55:21 +0000
(15:55 +1000)
committer
Michael Ellerman
<mpe@ellerman.id.au>
Mon, 6 Jul 2015 10:24:35 +0000
(20:24 +1000)
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>
drivers/misc/cxl/pci.c
patch
|
blob
|
history
diff --git
a/drivers/misc/cxl/pci.c
b/drivers/misc/cxl/pci.c
index
c68ef58
..
32ad097
100644
(file)
--- 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->p
1
n_mmio)
+ if (afu->p
2
n_mmio)
iounmap(afu->p2n_mmio);
if (afu->p1n_mmio)
iounmap(afu->p1n_mmio);