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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Jan 2014 23:28:45 +0000 (15:28 -0800)
commitb212be3528e64ff306f7477628cc042e448742c5
tree63ecbc830bc23fedafd513066e83c2093253c53b
parent8b4ed85b8404ffe7e10ee410c4df3968b86f0793
irqchip: renesas-irqc: Fix irqc_probe error handling

commit dfaf820a13ec160f06556e08dab423818ba87f14 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/irqchip/irq-renesas-irqc.c