From: Wei Yongjun Date: Sat, 12 Oct 2013 07:13:19 +0000 (+0800) Subject: powerpc/6xx: add missing iounmap() on error in hlwd_pic_init() X-Git-Tag: v3.13-rc1~20^2~54^2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8d7c0b527fba4891e5d8c74d78e80cac177bce5e;p=profile%2Fcommon%2Fkernel-common.git 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 Signed-off-by: Scott Wood --- diff --git a/arch/powerpc/platforms/embedded6xx/hlwd-pic.c b/arch/powerpc/platforms/embedded6xx/hlwd-pic.c index 3006b51..6f61e21 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; }