genirq: Wake up irq thread after action has been installed
authorThomas Gleixner <tglx@linutronix.de>
Mon, 17 Aug 2009 12:07:16 +0000 (14:07 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 18 Aug 2009 15:22:43 +0000 (17:22 +0200)
The wake_up_process() of the new irq thread in __setup_irq() is too
early as the irqaction is not yet fully initialized especially
action->irq is not yet set. The interrupt thread might dereference the
wrong irq descriptor.

Move the wakeup after the action is installed and action->irq has been
set.

Reported-by: Michael Buesch <mb@bu3sch.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Michael Buesch <mb@bu3sch.de>

No differences found