Merge "genirq: Avoid race between cpu hot plug and irq_desc() allocation paths"
This commit is contained in:
commit
31131180a1
1 changed files with 3 additions and 0 deletions
|
@ -78,6 +78,9 @@ void irq_migrate_all_off_this_cpu(void)
|
|||
bool affinity_broken;
|
||||
|
||||
desc = irq_to_desc(irq);
|
||||
if (!desc)
|
||||
continue;
|
||||
|
||||
raw_spin_lock(&desc->lock);
|
||||
affinity_broken = migrate_one_irq(desc);
|
||||
raw_spin_unlock(&desc->lock);
|
||||
|
|
Loading…
Add table
Reference in a new issue