u-boot/drivers/pinctrl/nxp
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
..
Kconfig pinctrl: Add i.MX7ULP pinctrl driver 2017-03-17 09:27:08 +01:00
Makefile pinctrl: Add i.MX7ULP pinctrl driver 2017-03-17 09:27:08 +01:00
pinctrl-imx.c pinctrl: imx: fix memory leak 2017-05-18 11:24:34 +02:00
pinctrl-imx.h pinctrl: Add i.MX7ULP pinctrl driver 2017-03-17 09:27:08 +01:00
pinctrl-imx5.c arm: imx: add i.MX53 Beckhoff CX9020 Embedded PC 2016-12-16 12:57:12 +01:00
pinctrl-imx6.c pinctrl: imx6: support i.MX6SLL 2016-12-16 11:38:24 +01:00
pinctrl-imx7.c pinctrl: imx: Support i.MX7D 2016-02-21 11:25:29 +01:00
pinctrl-imx7ulp.c pinctrl: Add i.MX7ULP pinctrl driver 2017-03-17 09:27:08 +01:00