irqchip: renesas-irqc: Fix irqc_probe error handling
authorAxel Lin <axel.lin@ingics.com>
Mon, 6 May 2013 09:03:32 +0000 (17:03 +0800)
committerSimon Horman <horms+renesas@verge.net.au>
Thu, 6 Jun 2013 01:23:58 +0000 (10:23 +0900)
commitdfaf820a13ec160f06556e08dab423818ba87f14
tree76988415570371b12820c682ccc1b8094e5b97c6
parentc7788792a5e7b0d5d7f96d0766b4cb6112d47d75
irqchip: renesas-irqc: Fix irqc_probe error handling

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