[PATCH] genirq: Fix wait_for_threads initialization in early_irq_init

From: Thomas Pfaff
Date: Tue May 03 2022 - 05:05:34 EST


From: Thomas Pfaff <tpfaff@xxxxxxx>

Bugfix for copy and paste error in genirq: Synchronize interrupt thread startup.

Signed-off-by: Thomas Pfaff <tpfaff@xxxxxxx>
---
diff --git a/kernel/irq/irqdesc.c b/kernel/irq/irqdesc.c
index 02f3b5bf5145..0099b87dd853 100644
--- a/kernel/irq/irqdesc.c
+++ b/kernel/irq/irqdesc.c
@@ -576,7 +576,7 @@ int __init early_irq_init(void)
raw_spin_lock_init(&desc[i].lock);
lockdep_set_class(&desc[i].lock, &irq_desc_lock_class);
mutex_init(&desc[i].request_mutex);
- init_waitqueue_head(&desc->wait_for_threads);
+ init_waitqueue_head(&desc[i].wait_for_threads);
desc_set_defaults(i, &desc[i], node, NULL, NULL);
}
return arch_early_irq_init();