]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
gpio: siox: explicitly support only threaded irqs
authorAhmad Fatoum <a.fatoum@pengutronix.de>
Mon, 7 Sep 2020 15:31:35 +0000 (17:31 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 7 Oct 2020 06:02:45 +0000 (08:02 +0200)
commitcb2480639590cdf6afd07f03c766ca66bcd240c9
tree6ca24e51a010faa5dcf40fba05b3b1800d89e667
parent5ae75e1e510db80b956d5433495ec32adf06adac
gpio: siox: explicitly support only threaded irqs

commit 45ccf6556720293323c20cda717756014ff63007 upstream.

The gpio-siox driver uses handle_nested_irq() to implement its
interrupt support. This is only capable of handling threaded irq
actions. For a hardirq action it triggers a NULL pointer oops.
(It calls action->thread_fn which is NULL then.)

Prevent registration of a hardirq action by setting
gpio_irq_chip::threaded to true.

Cc: u.kleine-koenig@pengutronix.de
Fixes: be8c8facc707 ("gpio: new driver to work with a 8x12 siox")
Cc: stable@vger.kernel.org
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpio/gpio-siox.c