projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c778879
)
irqchip: renesas-irqc: Fix irqc_probe error handling
author
Axel Lin
<axel.lin@ingics.com>
Mon, 6 May 2013 09:03:32 +0000
(17:03 +0800)
committer
Simon Horman
<horms+renesas@verge.net.au>
Thu, 6 Jun 2013 01:23:58 +0000
(10:23 +0900)
The code in goto err3 path is wrong because it will call fee_irq() with k == 0,
which means it does free_irq(p->irq[-1].requested_irq, &p->irq[-1]);
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
drivers/irqchip/irq-renesas-irqc.c
patch
|
blob
|
history
diff --git
a/drivers/irqchip/irq-renesas-irqc.c
b/drivers/irqchip/irq-renesas-irqc.c
index 927bff373aac5ace3bebf2e91b3dfd7e44a9b6d4..2f404ba61c6c23f0b3ea8a15f6bd4154c4e2578c 100644
(file)
--- a/
drivers/irqchip/irq-renesas-irqc.c
+++ b/
drivers/irqchip/irq-renesas-irqc.c
@@
-248,8
+248,8
@@
static int irqc_probe(struct platform_device *pdev)
return 0;
err3:
-
for (; k >= 0; k--
)
- free_irq(p->irq[k
- 1].requested_irq, &p->irq[k - 1
]);
+
while (--k >= 0
)
+ free_irq(p->irq[k
].requested_irq, &p->irq[k
]);
irq_domain_remove(p->irq_domain);
err2: