From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932169AbbFHIN0 (ORCPT ); Mon, 8 Jun 2015 04:13:26 -0400 Received: from terminus.zytor.com ([198.137.202.10]:35902 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752686AbbFHINN (ORCPT ); Mon, 8 Jun 2015 04:13:13 -0400 Date: Mon, 8 Jun 2015 01:12:34 -0700 From: tip-bot for Axel Lin Message-ID: 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 Reply-To: axel.lin@ingics.com, carlo@caione.org, maxime.ripard@free-electrons.com, linux-kernel@vger.kernel.org, tglx@linutronix.de, hpa@zytor.com, jason@lakedaemon.net, mingo@kernel.org In-Reply-To: <1433684009.9134.1.camel@ingics.com> References: <1433684009.9134.1.camel@ingics.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:irq/urgent] irqchip: sunxi-nmi: Fix off-by-one error in irq iterator Git-Commit-ID: febe06962ab191db50e633a0f79d9fb89a2d1078 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: febe06962ab191db50e633a0f79d9fb89a2d1078 Gitweb: http://git.kernel.org/tip/febe06962ab191db50e633a0f79d9fb89a2d1078 Author: Axel Lin AuthorDate: Sun, 7 Jun 2015 21:33:29 +0800 Committer: Thomas Gleixner 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 Cc: Maxime Ripard Cc: Carlo Caione Cc: Jason Cooper Cc: stable@vger.kernel.org Link: http://lkml.kernel.org/r/1433684009.9134.1.camel@ingics.com Signed-off-by: Thomas Gleixner --- 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;