Skip to content

Commit

Permalink
irqchip: sunxi-nmi: Fix off-by-one error in irq iterator
Browse files Browse the repository at this point in the history
Fixes: 6058bb3 '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>
Cc: stable@vger.kernel.org
Link: http://lkml.kernel.org/r/1433684009.9134.1.camel@ingics.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
  • Loading branch information
Axel Lin authored and Thomas Gleixner committed Jun 8, 2015
1 parent d4a4f75 commit febe069
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/irqchip/irq-sunxi-nmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit febe069

Please sign in to comment.