mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
cxl: Test the correct mmio space before unmapping
Before freeing p2n, test p2n, not p1n. Signed-off-by: Daniel Axtens <[email protected]> Acked-by: Ian Munsie <[email protected]> Signed-off-by: Michael Ellerman <[email protected]>
This commit is contained in:
parent
27ea2c420c
commit
8c00d5c9d3
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue