summaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpio-kempld.c
diff options
context:
space:
mode:
authorJohan Hovold <johan@kernel.org>2015-05-04 17:23:25 +0200
committerLinus Walleij <linus.walleij@linaro.org>2015-05-12 10:56:28 +0200
commit6d86750ce62391f5a0a7985d5c050c2e3c823ab9 (patch)
tree9e5d2939be3b01a3ffdec34c37640905e5389ced /drivers/gpio/gpio-kempld.c
parent030bbdbf4c833bc69f502eae58498bc5572db736 (diff)
downloadlinux-stable-6d86750ce62391f5a0a7985d5c050c2e3c823ab9.tar.gz
linux-stable-6d86750ce62391f5a0a7985d5c050c2e3c823ab9.tar.bz2
linux-stable-6d86750ce62391f5a0a7985d5c050c2e3c823ab9.zip
gpio: fix gpio leak in gpiochip_add error path
Make sure to free any hogged gpios on errors in gpiochip_add. Also move all forward declarations to the top of the file. Fixes: f625d4601759 ("gpio: add GPIO hogging mechanism") Signed-off-by: Johan Hovold <johan@kernel.org> Reviewed-by: Alexandre Courbot <acourbot@nvidia.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio/gpio-kempld.c')
0 files changed, 0 insertions, 0 deletions