Skip to content

Commit c855506

Browse files
committed
genirq/cpuhotplug: Fix up lock guards conversion brainf..t
The lock guard conversion converted raw_spin_lock_irq() to scoped_guard(raw_spinlock), which is obviously bogus and makes lockdep mightily unhappy. Note to self: Copy and pasta without using brain is a patently bad idea. Fixes: 88a4df1 ("genirq/cpuhotplug: Convert to lock guards") Reported-by: Borislav Petkov <bp@alien8.de> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Tested-by: Borislav Petkov <bp@alien8.de>
1 parent 97f4b99 commit c855506

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/irq/cpuhotplug.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ int irq_affinity_online_cpu(unsigned int cpu)
243243
irq_lock_sparse();
244244
for_each_active_irq(irq) {
245245
desc = irq_to_desc(irq);
246-
scoped_guard(raw_spinlock, &desc->lock)
246+
scoped_guard(raw_spinlock_irq, &desc->lock)
247247
irq_restore_affinity_of_irq(desc, cpu);
248248
}
249249
irq_unlock_sparse();

0 commit comments

Comments
 (0)