linux/drivers/pinctrl/bcm
Stefan Wahren 53653c6b91 pinctrl: bcm2835: Fix memory leak in error path
In case of an invalid pin value bcm2835_pctl_dt_node_to_map()
would leak the pull configs of already assigned pins.
So avoid this by calling the free map function in error case.

Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Fixes: e1b2dc70cd ("pinctrl: add bcm2835 driver")
Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2015-12-22 13:50:37 +01:00
..
Kconfig pinctrl: bcm: Default PINCTRL_BCM281XX to y for ARCH_BCM_MOBILE 2015-12-10 23:53:48 +01:00
Makefile Merge branch 'bcm-nsp' into devel 2015-12-10 18:47:28 +01:00
pinctrl-bcm281xx.c pinctrl: make pinctrl_register() return proper error code 2015-06-10 14:49:52 +02:00
pinctrl-bcm2835.c pinctrl: bcm2835: Fix memory leak in error path 2015-12-22 13:50:37 +01:00
pinctrl-cygnus-mux.c pinctrl: make pinctrl_register() return proper error code 2015-06-10 14:49:52 +02:00
pinctrl-iproc-gpio.c pinctrl: bcm/cygnys/iproc: fixup rebase issue 2015-12-21 09:41:57 +01:00
pinctrl-nsp-gpio.c pinctrl: fixup problematic flag 2015-12-17 14:50:45 +01:00