OpenCloudOS-Kernel/drivers/pinctrl/freescale
Nishka Dasgupta bf4b87b0d0 pinctrl: freescale: imx: Add of_node_put() before return
Each iteration of for_each_child_of_node() puts the previous node;
however, in the case of a return from the middle of the loop, there is no
put, thus causing a memory leak. Hence put of_node_put() statements as
required before two mid-loop return statements.
Issue found with Coccinelle.

Signed-off-by: Nishka Dasgupta <nishkadg.linux@gmail.com>
Link: https://lore.kernel.org/r/20190808074720.15754-1-nishkadg.linux@gmail.com
Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2019-08-10 10:29:19 +02:00
..
Kconfig This is the bulk of pin control changes for the v5.3 kernel 2019-07-13 15:02:27 -07:00
Makefile pinctrl: freescale: Add i.MX8MN pinctrl driver support 2019-06-25 10:40:23 +02:00
pinctrl-imx.c pinctrl: freescale: imx: Add of_node_put() before return 2019-08-10 10:29:19 +02:00
pinctrl-imx.h pinctrl: imx8mq: Add suspend/resume ops 2019-04-11 15:41:43 +02:00
pinctrl-imx1-core.c pinctrl: Convert to using %pOFn instead of device_node.name 2018-08-29 14:05:36 +02:00
pinctrl-imx1.c pinctrl: freescale: Switch to SPDX identifier 2018-05-24 09:32:58 +02:00
pinctrl-imx1.h pinctrl: freescale: Switch to SPDX identifier 2018-05-24 09:32:58 +02:00
pinctrl-imx6dl.c pinctrl: freescale: Switch to SPDX identifier 2018-05-24 09:32:58 +02:00
pinctrl-imx6q.c pinctrl: freescale: Switch to SPDX identifier 2018-05-24 09:32:58 +02:00
pinctrl-imx6sl.c pinctrl: freescale: Switch to SPDX identifier 2018-05-24 09:32:58 +02:00
pinctrl-imx6sll.c pinctrl: freescale: Switch to SPDX identifier 2018-05-24 09:32:58 +02:00
pinctrl-imx6sx.c pinctrl: freescale: Switch to SPDX identifier 2018-05-24 09:32:58 +02:00
pinctrl-imx6ul.c pinctrl: freescale: Switch to SPDX identifier 2018-05-24 09:32:58 +02:00
pinctrl-imx7d.c pinctrl: freescale: Switch to SPDX identifier 2018-05-24 09:32:58 +02:00
pinctrl-imx7ulp.c pinctrl: fsl: imx7ulp: change to use imx legacy binding 2018-11-09 10:54:29 +01:00
pinctrl-imx8mm.c pinctrl: freescale: Add imx8mm pinctrl driver support 2019-01-30 10:35:22 +01:00
pinctrl-imx8mn.c pinctrl: freescale: Add i.MX8MN pinctrl driver support 2019-06-25 10:40:23 +02:00
pinctrl-imx8mq.c pinctrl: imx8mq: Add suspend/resume ops 2019-04-11 15:41:43 +02:00
pinctrl-imx8qm.c pinctrl: imx: add imx8qm driver 2019-01-11 09:25:01 +01:00
pinctrl-imx8qxp.c pinctrl: imx: add imx8qxp driver 2018-11-05 09:33:32 +01:00
pinctrl-imx21.c pinctrl: freescale: Switch to SPDX identifier 2018-05-24 09:32:58 +02:00
pinctrl-imx23.c pinctrl: freescale: Switch to SPDX identifier 2018-05-24 09:32:58 +02:00
pinctrl-imx25.c pinctrl: freescale: Switch to SPDX identifier 2018-05-24 09:32:58 +02:00
pinctrl-imx27.c pinctrl: freescale: Switch to SPDX identifier 2018-05-24 09:32:58 +02:00
pinctrl-imx28.c pinctrl: freescale: Switch to SPDX identifier 2018-05-24 09:32:58 +02:00
pinctrl-imx35.c pinctrl: freescale: Switch to SPDX identifier 2018-05-24 09:32:58 +02:00
pinctrl-imx50.c pinctrl: freescale: Switch to SPDX identifier 2018-05-24 09:32:58 +02:00
pinctrl-imx51.c pinctrl: freescale: Switch to SPDX identifier 2018-05-24 09:32:58 +02:00
pinctrl-imx53.c pinctrl: freescale: Switch to SPDX identifier 2018-05-24 09:32:58 +02:00
pinctrl-mxs.c pinctrl: freescale: mxs: Add of_node_put() before return 2019-08-06 14:52:24 +02:00
pinctrl-mxs.h pinctrl: freescale: Switch to SPDX identifier 2018-05-24 09:32:58 +02:00
pinctrl-scu.c pinctrl: fsl: Make pinctrl_ipc_handle static 2019-04-04 12:15:36 +07:00
pinctrl-vf610.c pinctrl: freescale: Switch to SPDX identifier 2018-05-24 09:32:58 +02:00