gpio/davinci: Fix race in installing chained irq handler
authorThomas Gleixner <tglx@linutronix.de>
Mon, 13 Jul 2015 21:22:44 +0000 (23:22 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 14 Jul 2015 10:12:21 +0000 (12:12 +0200)
commitbdac2b6dc7392668a8530d67a5f762366f57f9b4
treea9b08734c4e4b86965de27c48c12bea194b751bb
parent1765d671b18e58fdd6341edac9c22e57d90ef6a8
gpio/davinci: Fix race in installing chained irq handler

Fix a race where a pending interrupt could be received and the handler
called before the handler's data has been setup, by converting to
irq_set_chained_handler_and_data().

Search and conversion was done with coccinelle.

Reported-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Julia Lawall <Julia.Lawall@lip6.fr>
Cc: Linus Walleij <linus.walleij@linaro.org>
Cc: Alexandre Courbot <gnurou@gmail.com>
drivers/gpio/gpio-davinci.c