mips: Vr41xx: add missing iounmap() on error in vr41xx_pciu_init()
PATCH 1/1 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 <[email protected]>
--- arch/mips/pci/pci-vr41xx.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
arch/mips/pci/pci-vr41xx.c +3 -1
@@ -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; }
Signature · 1 line
2.23.0
Quoted 7 lines · Qinglang Miao
add missing
iounmap()ofpciu_baseon error when failed to initio_map_base.Signed-off-by Qinglang Miao <[email protected]>--- arch/mips/pci/pci-vr41xx.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
applied to mips-next.
Thomas.
Signature · 2 lines
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]