WSL2-Linux-Kernel/drivers/pinctrl/freescale
Peng Fan 865da0f083 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: 17723111e6 ("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-08-19 05:45:09 +02:00
..
Kconfig
Makefile
pinctrl-imx.c
pinctrl-imx.h
pinctrl-imx1-core.c
pinctrl-imx1.c
pinctrl-imx1.h
pinctrl-imx6dl.c
pinctrl-imx6q.c
pinctrl-imx6sl.c
pinctrl-imx6sll.c
pinctrl-imx6sx.c
pinctrl-imx6ul.c
pinctrl-imx7d.c
pinctrl-imx7ulp.c
pinctrl-imx8dxl.c
pinctrl-imx8mm.c
pinctrl-imx8mn.c
pinctrl-imx8mp.c
pinctrl-imx8mq.c
pinctrl-imx8qm.c
pinctrl-imx8qxp.c
pinctrl-imx8ulp.c
pinctrl-imx23.c
pinctrl-imx25.c
pinctrl-imx27.c
pinctrl-imx28.c
pinctrl-imx35.c
pinctrl-imx50.c
pinctrl-imx51.c
pinctrl-imx53.c
pinctrl-mxs.c
pinctrl-mxs.h
pinctrl-scu.c
pinctrl-vf610.c