summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorhuhai <huhai@tj.kylinos.cn>2020-05-21 17:26:48 +1000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-06-25 15:41:55 +0200
commitba112d00f50c32682485c6e67904ca5a17c36373 (patch)
tree9e864d95c2ec9e38e491114652be2127fce32271 /arch
parentc5f234ce6768356ffd2064c09476a04b0266669b (diff)
downloadlinux-ba112d00f50c32682485c6e67904ca5a17c36373.tar.gz
linux-ba112d00f50c32682485c6e67904ca5a17c36373.tar.bz2
linux-ba112d00f50c32682485c6e67904ca5a17c36373.zip
powerpc/4xx: Don't unmap NULL mbase
[ Upstream commit bcec081ecc940fc38730b29c743bbee661164161 ] Signed-off-by: huhai <huhai@tj.kylinos.cn> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20200521072648.1254699-1-mpe@ellerman.id.au Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/powerpc/platforms/4xx/pci.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/powerpc/platforms/4xx/pci.c b/arch/powerpc/platforms/4xx/pci.c
index 73e6b36bcd51..256943af58aa 100644
--- a/arch/powerpc/platforms/4xx/pci.c
+++ b/arch/powerpc/platforms/4xx/pci.c
@@ -1242,7 +1242,7 @@ static void __init ppc460sx_pciex_check_link(struct ppc4xx_pciex_port *port)
if (mbase == NULL) {
printk(KERN_ERR "%pOF: Can't map internal config space !",
port->node);
- goto done;
+ return;
}
while (attempt && (0 == (in_le32(mbase + PECFG_460SX_DLLSTA)
@@ -1252,9 +1252,7 @@ static void __init ppc460sx_pciex_check_link(struct ppc4xx_pciex_port *port)
}
if (attempt)
port->link = 1;
-done:
iounmap(mbase);
-
}
static struct ppc4xx_pciex_hwops ppc460sx_pcie_hwops __initdata = {