kernel_samsung_a53x/drivers/pinctrl/freescale
Peng Fan 4e29f211ad pinctrl: freescale: mxs: Fix refcount of child
[ Upstream commit 7f500f2011c0bbb6e1cacab74b4c99222e60248e ]

of_get_next_child() will increase refcount of the returned node, need
use of_node_put() on it when done.

Per current implementation, 'child' will be override by
for_each_child_of_node(np, child), so use of_get_child_count to avoid
refcount leakage.

Fixes: 17723111e64f ("pinctrl: add pinctrl-mxs support")
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Link: https://lore.kernel.org/20240504-pinctrl-cleanup-v2-18-26c5f2dc1181@nxp.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-23 23:20:11 +01:00
..
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-imx.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-imx.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-imx1-core.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-imx1.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-imx1.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-imx6dl.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-imx6q.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-imx6sl.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-imx6sll.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-imx6sx.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-imx6ul.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-imx7d.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-imx7ulp.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-imx8dxl.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-imx8mm.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-imx8mn.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-imx8mp.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-imx8mq.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-imx8qm.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-imx8qxp.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-imx21.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-imx23.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-imx25.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-imx27.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-imx28.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-imx35.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-imx50.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-imx51.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-imx53.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-mxs.c pinctrl: freescale: mxs: Fix refcount of child 2024-11-23 23:20:11 +01:00
pinctrl-mxs.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-scu.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-vf610.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00