Johan Hovold
5539b3c938
gpio: fix memory and reference leaks in gpiochip_add error path
...
Memory allocated and references taken by of_gpiochip_add and
acpi_gpiochip_add were never released on errors in gpiochip_add (e.g.
failure to find free gpio range).
Fixes: 391c970c0dd1 ("of/gpio: add default of_xlate function if device
has a node pointer")
Fixes: 664e3e5ac64c ("gpio / ACPI: register to ACPI events
automatically")
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:23:47 +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:23:47 +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