]> git.karo-electronics.de Git - linux-beck.git/commit
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>
Mon, 13 Jul 2015 21:24:48 +0000 (23:24 +0200)
commit20483d04ae6f373858f3ca28cd7e26b66106d937
tree92636cc4bde53cf46fc9b2dfaab2fb8eb95c7faf
parent01e2d0627a9a6edb24c37db45db5ecb31e9de808
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