diff mbox series

genirq: Fix wait_for_threads initialization in early_irq_init

Message ID e9d64164-4690-5ec8-c1b9-eb1e21c7c5@pcs.com
State New
Headers show
Series genirq: Fix wait_for_threads initialization in early_irq_init | expand

Commit Message

Thomas Pfaff May 3, 2022, 9:04 a.m. UTC
From: Thomas Pfaff <tpfaff@pcs.com>

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

Signed-off-by: Thomas Pfaff <tpfaff@pcs.com>
---
diff mbox series

Patch

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();