All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] irqchip: sunxi-nmi: Fix off-by-one for iterating over gc->num_ct
@ 2015-06-07 13:33 Axel Lin
  2015-06-08  7:59 ` Maxime Ripard
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Axel Lin @ 2015-06-07 13:33 UTC (permalink / raw)
  To: Thomas Gleixner, Jason Cooper; +Cc: Maxime Ripard, Carlo Caione, linux-kernel

Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
 drivers/irqchip/irq-sunxi-nmi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/irqchip/irq-sunxi-nmi.c b/drivers/irqchip/irq-sunxi-nmi.c
index 12f547a..eb9b59e 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;
 
-- 
1.8.3.2




^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-06-08  8:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-07 13:33 [PATCH] irqchip: sunxi-nmi: Fix off-by-one for iterating over gc->num_ct Axel Lin
2015-06-08  7:59 ` Maxime Ripard
2015-06-08  8:11 ` Carlo Caione
2015-06-08  8:12 ` [tip:irq/urgent] irqchip: sunxi-nmi: Fix off-by-one error in irq iterator tip-bot for Axel Lin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.