u-boot-brain/drivers/pinctrl
Peng Fan c1d1e9d677 pinctrl: imx: fix memory leak
Each time set_state is called, a new piece memory will
be allocated for pin_data, but not freed, this will
incur memory leak.

When error, the devm API could not free memory automatically.
So need call devm_kfree when error.

Issue reported by Coverity

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Cc: Simon Glass <sjg@chromium.org>
Cc: Stefan Agner <stefan.agner@toradex.com>
Cc: Stefano Babic <sbabic@denx.de>
2017-05-18 11:24:34 +02:00
..
aspeed aspeed: AST2500 Pinctrl Driver 2017-05-08 11:57:33 -04:00
ath79 pinctrl: Kconfig: sort pinctrl config options to prevent future clutter 2017-04-27 16:49:04 -04:00
exynos dm: core: Replace of_offset with accessor 2017-02-08 06:12:14 -07:00
meson dm: core: Replace of_offset with accessor 2017-02-08 06:12:14 -07:00
mvebu dm: core: Replace of_offset with accessor 2017-02-08 06:12:14 -07:00
nxp pinctrl: imx: fix memory leak 2017-05-18 11:24:34 +02:00
rockchip rockchip: pinctrl: rk3399: add support for the HDMI I2C pins 2017-05-10 13:37:21 -06:00
uniphier pinctrl: uniphier: support pin configuration 2017-02-23 08:37:56 +09:00
Kconfig aspeed: AST2500 Pinctrl Driver 2017-05-08 11:57:33 -04:00
Makefile aspeed: AST2500 Pinctrl Driver 2017-05-08 11:57:33 -04:00
pinctrl_pic32.c dm: core: Replace of_offset with accessor 2017-02-08 06:12:14 -07:00
pinctrl_stm32.c stm32f7: increase the max no of pin configuration to 70 2017-05-08 11:57:23 -04:00
pinctrl-at91-pio4.c dm: core: Replace of_offset with accessor 2017-02-08 06:12:14 -07:00
pinctrl-at91.c pinctrl: at91: add pinctrl driver 2017-04-13 14:44:50 -06:00
pinctrl-generic.c dm: core: Replace of_offset with accessor 2017-02-08 06:12:14 -07:00
pinctrl-sandbox.c pinctrl: sandbox: add sandbox pinctrl driver 2015-08-31 07:57:29 -06:00
pinctrl-single.c Add 16-bit single register pin controller support 2017-05-11 22:21:26 -04:00
pinctrl-sti.c STiH410: Add STi pinctrl driver 2017-03-14 20:40:20 -04:00
pinctrl-uclass.c dm: allow limiting pre-reloc markings to spl or tpl 2017-03-16 16:03:44 -06:00