Skip to contentSkip to conversation

irq fix for 4.14

GIT PULL Thomas Gleixner 1 participant 1 message Sep 17, 2017 IRQ

lore
Share & tools
lore
#0 lore raw

Linus,

please pull the latest irq-urgent-for-linus git tree from:

git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git irq-urgent-for-linus

Fix for an off by one error in a cpumask result comparison.

Thanks,

tglx

------------------>
Thomas Gleixner (1):
genirq: Fix cpumask check in __irq_startup_managed()

 kernel/irq/chip.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/irq/chip.c +1 -1
index f51b7b6d2451..6fc89fd93824 100644
@@ -202,7 +202,7 @@ __irq_startup_managed(struct irq_desc *desc, struct cpumask *aff, bool force)
 
 	irqd_clr_managed_shutdown(d);
 
-	if (cpumask_any_and(aff, cpu_online_mask) > nr_cpu_ids) {
+	if (cpumask_any_and(aff, cpu_online_mask) >= nr_cpu_ids) {
 		/*
 		 * Catch code which fiddles with enable_irq() on a managed
 		 * and potentially shutdown IRQ. Chained interrupt