Johan Hovold
00acc3dc24
gpio: fix memory leak and sleep-while-atomic
...
Fix memory leak and sleep-while-atomic in gpiochip_remove.
The memory leak was introduced by afa82fab5e ("gpio / ACPI: Move event
handling registration to gpiolib irqchip helpers") that moved the
release of acpi interrupt resources to gpiochip_irqchip_remove, but by
then the resources are no longer accessible as the acpi_gpio_chip has
already been freed by acpi_gpiochip_remove.
Note that this also fixes a few potential sleep-while-atomics, which has
been around since 1425052097 ("gpio: add IRQ chip helpers in gpiolib")
when the call to gpiochip_irqchip_remove while holding a spinlock was
added (a couple of irq-domain paths can end up grabbing mutexes).
Fixes: afa82fab5e ("gpio / ACPI: Move event handling registration to
gpiolib irqchip helpers")
Fixes: 1425052097 ("gpio: add IRQ chip helpers in gpiolib")
Cc: stable <stable@vger.kernel.org >
Signed-off-by: Johan Hovold <johan@kernel.org >
Signed-off-by: Linus Walleij <linus.walleij@linaro.org >
2015-01-14 14:25:48 +01:00
..
2014-11-04 21:58:23 +01:00
2014-07-22 16:39:26 +02:00
2014-10-21 10:48:04 +02:00
2014-09-02 10:44:01 +02:00
2014-10-20 16:20:31 +02:00
2014-07-22 16:39:26 +02:00
2014-10-27 16:26:35 +01:00
2014-07-22 16:39:26 +02:00
2014-12-14 16:10:09 -08:00
2014-08-29 14:31:43 +02:00
2014-10-20 16:20:31 +02:00
2015-01-14 14:12:02 +01:00
2014-12-14 16:10:09 -08:00
2014-10-20 16:20:31 +02:00
2014-10-20 16:20:31 +02:00
2014-12-14 16:10:09 -08:00
2014-11-10 16:30:09 +00:00
2014-12-14 16:10:09 -08:00
2014-12-14 16:10:09 -08:00
2014-10-20 16:20:31 +02:00
2014-10-20 16:20:31 +02:00
2014-10-20 16:20:31 +02:00
2014-07-22 16:39:26 +02:00
2014-12-14 16:10:09 -08:00
2014-10-20 16:20:31 +02:00
2014-06-19 09:31:16 +02:00
2014-10-20 16:20:31 +02:00
2014-07-22 16:39:26 +02:00
2014-10-20 16:20:31 +02:00
2014-10-20 16:20:31 +02:00
2014-10-02 16:07:00 +02:00
2014-10-20 16:20:31 +02:00
2014-10-20 16:20:31 +02:00
2014-10-20 16:20:31 +02:00
2014-07-22 16:39:26 +02:00
2014-07-22 16:39:26 +02:00
2013-03-27 16:05:11 +01:00
2013-08-23 19:44:28 +02:00
2014-07-22 16:39:26 +02:00
2014-07-22 16:39:26 +02:00
2014-12-12 11:22:11 +01:00
2014-07-22 16:39:26 +02:00
2014-10-20 16:20:31 +02:00
2014-10-20 16:20:31 +02:00
2014-11-27 15:01:18 +01:00
2014-10-20 16:20:31 +02:00
2014-10-20 16:20:31 +02:00
2014-12-14 16:10:09 -08:00
2014-10-20 16:20:31 +02:00
2014-12-14 16:10:09 -08:00
2014-10-20 16:20:31 +02:00
2014-12-14 16:10:09 -08:00
2014-10-20 16:20:31 +02:00
2014-12-14 14:05:05 -08:00
2014-07-22 16:39:26 +02:00
2014-08-28 14:19:40 +02:00
2014-07-22 16:39:26 +02:00
2014-10-02 16:07:00 +02:00
2014-12-03 14:44:23 +01:00
2014-07-07 12:54:28 +02:00
2014-10-20 16:20:31 +02:00
2014-11-27 15:01:19 +01:00
2014-07-22 16:39:26 +02:00
2013-10-29 11:01:02 +00:00
2014-09-23 17:51:39 +02:00
2014-07-22 16:39:26 +02:00
2014-12-14 16:10:09 -08:00
2014-07-22 16:39:26 +02:00
2014-12-14 16:10:09 -08:00
2014-10-20 16:20:31 +02:00
2014-10-02 16:06:59 +02:00
2014-12-14 16:10:09 -08:00
2014-07-22 16:39:26 +02:00
2014-10-20 16:20:31 +02:00
2014-12-14 16:10:09 -08:00
2014-11-25 16:18:56 +00:00
2014-12-14 16:10:09 -08:00
2014-10-20 16:20:31 +02:00
2014-07-22 16:39:26 +02:00
2014-07-22 16:39:26 +02:00
2014-10-20 16:20:31 +02:00
2014-10-20 16:20:31 +02:00
2014-10-20 16:20:31 +02:00
2014-10-20 16:20:31 +02:00
2014-10-20 16:20:31 +02:00
2014-12-14 16:10:09 -08:00
2014-07-22 16:39:26 +02:00
2014-10-24 14:18:05 +02:00
2014-07-22 16:39:26 +02:00
2014-12-14 16:10:09 -08:00
2014-10-20 16:20:31 +02:00
2014-07-22 16:39:26 +02:00
2014-07-22 16:39:26 +02:00
2014-07-22 16:39:26 +02:00
2014-10-20 16:20:31 +02:00
2014-09-24 13:37:38 +02:00
2014-10-20 16:20:31 +02:00
2014-10-20 16:20:31 +02:00
2014-12-04 00:51:30 +01:00
2014-12-14 14:05:05 -08:00
2014-12-02 15:46:36 +01:00
2014-08-17 09:12:35 -05:00
2014-11-28 14:43:36 +01:00
2015-01-14 14:25:48 +01:00
2014-11-04 21:58:22 +01:00
2014-12-14 14:05:05 -08:00
2014-12-14 14:05:05 -08:00