Commit 8d7c0b52 authored by Wei Yongjun's avatar Wei Yongjun Committed by Scott Wood

powerpc/6xx: add missing iounmap() on error in hlwd_pic_init()

Add the missing iounmap() before return from hlwd_pic_init()
in the error handling case.
Signed-off-by: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: default avatarScott Wood <scottwood@freescale.com>
parent 5f2da0f1
......@@ -181,6 +181,7 @@ struct irq_domain *hlwd_pic_init(struct device_node *np)
&hlwd_irq_domain_ops, io_base);
if (!irq_domain) {
pr_err("failed to allocate irq_domain\n");
iounmap(io_base);
return NULL;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment