Files
u-boot/drivers
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
..
2017-04-05 13:52:01 -04:00
2017-05-12 08:37:09 -04:00
2017-05-18 11:24:34 +02:00
2017-05-10 16:16:09 +02:00
2017-05-17 17:13:06 +08:00
2017-05-09 16:11:36 -04:00
2017-05-18 11:24:34 +02:00
2017-05-10 16:16:09 +02:00
2017-05-08 11:57:28 -04:00
2017-05-18 11:23:31 +02:00
2017-05-15 21:22:24 +02:00