Searched hist:c1d1e9d677901e59f31e9c384c70883642867bc1 (Results 1 – 1 of 1) sorted by relevance
| /rk3399_rockchip-uboot/drivers/pinctrl/nxp/ |
| H A D | pinctrl-imx.c | c1d1e9d677901e59f31e9c384c70883642867bc1 Thu May 11 09:34:14 UTC 2017 Peng Fan <peng.fan@nxp.com> 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>
|