mirror of https://gitee.com/openkylin/linux.git
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
This commit is contained in:
commit
baaae19210
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue