projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a5aa91
)
mips: cm: add missing iounmap() on error in mips_cm_probe()
author
Qinglang Miao
<miaoqinglang@huawei.com>
Wed, 28 Oct 2020 09:15:46 +0000
(17:15 +0800)
committer
Thomas Bogendoerfer
<tsbogend@alpha.franken.de>
Fri, 6 Nov 2020 10:33:11 +0000
(11:33 +0100)
Add the missing iounmap() of iounmap(mips_gcr_base) before
return from mips_cm_probe() in the error handling case.
Signed-off-by: Qinglang Miao <miaoqinglang@huawei.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/kernel/mips-cm.c
patch
|
blob
|
history
diff --git
a/arch/mips/kernel/mips-cm.c
b/arch/mips/kernel/mips-cm.c
index f60af512c8773929e2ec55f07bb6c60d88ec6bf8..90f1c3df1f0e495ed0d0496455ab23b9747f78de 100644
(file)
--- a/
arch/mips/kernel/mips-cm.c
+++ b/
arch/mips/kernel/mips-cm.c
@@
-266,6
+266,7
@@
int mips_cm_probe(void)
if ((base_reg & CM_GCR_BASE_GCRBASE) != addr) {
pr_err("GCRs appear to have been moved (expected them at 0x%08lx)!\n",
(unsigned long)addr);
+ iounmap(mips_gcr_base);
mips_gcr_base = NULL;
return -ENODEV;
}