From: tip-bot for Axel Lin <tipbot@zytor.com>
To: linux-tip-commits@vger.kernel.org
Cc: jason@lakedaemon.net, hpa@zytor.com, mingo@kernel.org,
axel.lin@ingics.com, linux-kernel@vger.kernel.org,
tglx@linutronix.de, carlo@caione.org,
maxime.ripard@free-electrons.com
Subject: [tip:irq/urgent] irqchip: sunxi-nmi: Fix off-by-one error in irq iterator
Date: Mon, 8 Jun 2015 01:12:34 -0700 [thread overview]
Message-ID: <tip-febe06962ab191db50e633a0f79d9fb89a2d1078@git.kernel.org> (raw)
In-Reply-To: <1433684009.9134.1.camel@ingics.com>
Commit-ID: febe06962ab191db50e633a0f79d9fb89a2d1078
Gitweb: http://git.kernel.org/tip/febe06962ab191db50e633a0f79d9fb89a2d1078
Author: Axel Lin <axel.lin@ingics.com>
AuthorDate: Sun, 7 Jun 2015 21:33:29 +0800
Committer: Thomas Gleixner <tglx@linutronix.de>
CommitDate: Mon, 8 Jun 2015 10:08:50 +0200
irqchip: sunxi-nmi: Fix off-by-one error in irq iterator
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>
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>
---
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 4a9ce5b..6b2b582 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;
prev parent reply other threads:[~2015-06-08 8:13 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
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-bot for Axel Lin [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=tip-febe06962ab191db50e633a0f79d9fb89a2d1078@git.kernel.org \
--to=tipbot@zytor.com \
--cc=axel.lin@ingics.com \
--cc=carlo@caione.org \
--cc=hpa@zytor.com \
--cc=jason@lakedaemon.net \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tip-commits@vger.kernel.org \
--cc=maxime.ripard@free-electrons.com \
--cc=mingo@kernel.org \
--cc=tglx@linutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox