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)
commit69ab849439b506cd8dd2879527fdb64d95dd5211
tree059fba8bcb8147fafcd4e86db61f0f88d6a84095
parent2d860ad76f4ee4d2eba0fe3797c8d7cdce432cc0
genirq: Wake up irq thread after action has been installed

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>
kernel/irq/manage.c