projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2673ecf
)
mips: Vr41xx: add missing iounmap() on error in vr41xx_pciu_init()
author
Qinglang Miao
<miaoqinglang@huawei.com>
Wed, 28 Oct 2020 09:15:48 +0000
(17:15 +0800)
committer
Thomas Bogendoerfer
<tsbogend@alpha.franken.de>
Fri, 6 Nov 2020 10:35:46 +0000
(11:35 +0100)
add missing iounmap() of pciu_base on error when failed to init
io_map_base.
Signed-off-by: Qinglang Miao <miaoqinglang@huawei.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/pci/pci-vr41xx.c
patch
|
blob
|
history
diff --git
a/arch/mips/pci/pci-vr41xx.c
b/arch/mips/pci/pci-vr41xx.c
index 1fa4e101470cf0168bdeee0d6dc63f79090e9f6c..4f250c55b6e6270250c8eac7598b0aa1ed9b51e9 100644
(file)
--- a/
arch/mips/pci/pci-vr41xx.c
+++ b/
arch/mips/pci/pci-vr41xx.c
@@
-293,8
+293,10
@@
static int __init vr41xx_pciu_init(void)
master = setup->master_io;
io_map_base = ioremap(master->bus_base_address,
resource_size(res));
- if (!io_map_base)
+ if (!io_map_base) {
+ iounmap(pciu_base);
return -EBUSY;
+ }
vr41xx_pci_controller.io_map_base = (unsigned long)io_map_base;
}