diff options
author | Axel Lin <axel.lin@ingics.com> | 2015-06-07 21:33:29 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-06-22 17:03:36 -0700 |
commit | 80e2a77050d2cc255835ff330bccb6bc5e9a3a94 (patch) | |
tree | 1d8d6c678d26c28d74a0921da88c48e1eb53c96c | |
parent | 48baed920dae8b9ac551e5b5a643c60ddd254253 (diff) | |
download | lwn-80e2a77050d2cc255835ff330bccb6bc5e9a3a94.tar.gz lwn-80e2a77050d2cc255835ff330bccb6bc5e9a3a94.zip |
irqchip: sunxi-nmi: Fix off-by-one error in irq iterator
commit febe06962ab191db50e633a0f79d9fb89a2d1078 upstream.
Fixes: 6058bb362818 'ARM: sun7i/sun6i: irqchip: Add irqchip driver for NMI controller'
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Cc: Maxime Ripard <maxime.ripard@free-electrons.com>
Cc: Carlo Caione <carlo@caione.org>
Cc: Jason Cooper <jason@lakedaemon.net>
Link: http://lkml.kernel.org/r/1433684009.9134.1.camel@ingics.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/irqchip/irq-sunxi-nmi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/irqchip/irq-sunxi-nmi.c b/drivers/irqchip/irq-sunxi-nmi.c index 4a9ce5b50c5b..6b2b582433bd 100644 --- a/drivers/irqchip/irq-sunxi-nmi.c +++ b/drivers/irqchip/irq-sunxi-nmi.c @@ -104,7 +104,7 @@ static int sunxi_sc_nmi_set_type(struct irq_data *data, unsigned int flow_type) irqd_set_trigger_type(data, flow_type); irq_setup_alt_chip(data, flow_type); - for (i = 0; i <= gc->num_ct; i++, ct++) + for (i = 0; i < gc->num_ct; i++, ct++) if (ct->type & flow_type) ctrl_off = ct->regs.type; |