mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-21 03:33:59 +08:00
mips: Vr41xx: add missing iounmap() on error in vr41xx_pciu_init()
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>
This commit is contained in:
parent
2673ecf958
commit
c424dc4cd1
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user