The result of cpumask_any_and() is invalid when result greater or equal nr_cpu_ids. The current check is checking for greater only. Fix it.
Showing the changes to kernel (1 of 1 file). Show all
Unified · Split
| @@ -202,7 +202,7 @@ __irq_startup_managed(struct irq_desc *desc, struct cpumask *aff, bool force) · 201 unmodified lines | |||
| 202 | 202 | ||
| 203 | irqd_clr_managed_shutdown(d); | 203 | irqd_clr_managed_shutdown(d); |
| 204 | 204 | ||
| 205 | if (cpumask_any_and(aff, cpu_online_mask) > nr_cpu_ids) { | 205 | if (cpumask_any_and(aff, cpu_online_mask) >= nr_cpu_ids) { |
| 206 | /* | 206 | /* |
| 207 | * Catch code which fiddles with enable_irq() on a managed | 207 | * Catch code which fiddles with enable_irq() on a managed |
| 208 | * and potentially shutdown IRQ. Chained interrupt | 208 | * and potentially shutdown IRQ. Chained interrupt |