History

genirq: Fix cpumask check in __irq_startup_managed()

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.

Thomas Gleixner committed 9 years ago

Commit 9cb067e1 parent 73184131 file · +1 −1Browse files

Showing the changes to kernel (1 of 1 file). Show all

Unified · Split

kernel/irq/chip.c+1−1
@@ -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 managed207 * Catch code which fiddles with enable_irq() on a managed
208 * and potentially shutdown IRQ. Chained interrupt208 * and potentially shutdown IRQ. Chained interrupt

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t