summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms/embedded6xx/hlwd-pic.c
diff options
context:
space:
mode:
authorWei Yongjun2013-10-12 09:13:19 +0200
committerScott Wood2013-10-29 03:11:22 +0100
commit8d7c0b527fba4891e5d8c74d78e80cac177bce5e (patch)
treea85c02c8437018eb0045555d3f8689694bc86ff2 /arch/powerpc/platforms/embedded6xx/hlwd-pic.c
parentpowerpc/8xx: Fixing memory init issue with CONFIG_PIN_TLB (diff)
downloadkernel-qcow2-linux-8d7c0b527fba4891e5d8c74d78e80cac177bce5e.tar.gz
kernel-qcow2-linux-8d7c0b527fba4891e5d8c74d78e80cac177bce5e.tar.xz
kernel-qcow2-linux-8d7c0b527fba4891e5d8c74d78e80cac177bce5e.zip
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: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Signed-off-by: Scott Wood <scottwood@freescale.com>
Diffstat (limited to 'arch/powerpc/platforms/embedded6xx/hlwd-pic.c')
-rw-r--r--arch/powerpc/platforms/embedded6xx/hlwd-pic.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/embedded6xx/hlwd-pic.c b/arch/powerpc/platforms/embedded6xx/hlwd-pic.c
index 3006b5117ec6..6f61e21b3617 100644
--- a/arch/powerpc/platforms/embedded6xx/hlwd-pic.c
+++ b/arch/powerpc/platforms/embedded6xx/hlwd-pic.c
@@ -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;
}