diff options
author | Johan Hovold <johan@kernel.org> | 2015-01-12 17:12:24 +0100 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2015-01-14 14:23:47 +0100 |
commit | 5539b3c938d64a60cb1fc442ac3ce9263d52de0c (patch) | |
tree | c588c1c932ff8a98bd6fbb8dc27430b3d094fe90 /drivers/char/agp | |
parent | e733a2fb8cbcff0747108cb529ffb4e4a00465ac (diff) |
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>
Diffstat (limited to 'drivers/char/agp')
0 files changed, 0 insertions, 0 deletions