diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2015-06-14 14:53:02 -1000 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-06-14 14:53:02 -1000 |
commit | baaae1921088079bdb8e71317b06d071511d74b1 (patch) | |
tree | ad4bdf52e9c0aaac0467f787bebd52370d581ad6 /drivers/irqchip | |
parent | 5bd2c2867ffc0f4beeac5b94b0f674969f24c883 (diff) | |
parent | febe06962ab191db50e633a0f79d9fb89a2d1078 (diff) | |
download | linux-stable-baaae1921088079bdb8e71317b06d071511d74b1.tar.gz linux-stable-baaae1921088079bdb8e71317b06d071511d74b1.tar.bz2 linux-stable-baaae1921088079bdb8e71317b06d071511d74b1.zip |
Merge branch 'irq-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull irqchip fix from Thomas Gleixner:
"A single fix for an off by one bug in the sunxi irqchip driver"
* 'irq-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
irqchip: sunxi-nmi: Fix off-by-one error in irq iterator
Diffstat (limited to 'drivers/irqchip')
-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; |