OpenCloudOS-Kernel/drivers/pinctrl/freescale
Peng Fan e0ed0ea337 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-03 08:54:07 +02:00
..
Kconfig pinctrl: freescale: remove generic pin config core support 2023-03-07 14:15:37 +01:00
Makefile pinctrl: freescale: Add i.MXRT1170 pinctrl driver support 2022-05-19 15:07:33 +02:00
pinctrl-imx.c pinctrl: Explicitly include correct DT includes 2023-07-20 21:41:24 +02:00
pinctrl-imx.h pinctrl: freescale: remove generic pin config core support 2023-03-07 14:15:37 +01:00
pinctrl-imx1-core.c pinctrl: Explicitly include correct DT includes 2023-07-20 21:41:24 +02:00
pinctrl-imx1.c pinctrl: imx: Disallow driver unbind 2021-04-08 16:00:53 +02:00
pinctrl-imx1.h
pinctrl-imx6dl.c pinctrl: Explicitly include correct DT includes 2023-07-20 21:41:24 +02:00
pinctrl-imx6q.c pinctrl: Explicitly include correct DT includes 2023-07-20 21:41:24 +02:00
pinctrl-imx6sl.c pinctrl: Explicitly include correct DT includes 2023-07-20 21:41:24 +02:00
pinctrl-imx6sll.c pinctrl: Explicitly include correct DT includes 2023-07-20 21:41:24 +02:00
pinctrl-imx6sx.c pinctrl: Explicitly include correct DT includes 2023-07-20 21:41:24 +02:00
pinctrl-imx6ul.c pinctrl: Explicitly include correct DT includes 2023-07-20 21:41:24 +02:00
pinctrl-imx7d.c pinctrl: Explicitly include correct DT includes 2023-07-20 21:41:24 +02:00
pinctrl-imx7ulp.c pinctrl: Explicitly include correct DT includes 2023-07-20 21:41:24 +02:00
pinctrl-imx8dxl.c pinctrl: Explicitly include correct DT includes 2023-07-20 21:41:24 +02:00
pinctrl-imx8mm.c pinctrl: Explicitly include correct DT includes 2023-07-20 21:41:24 +02:00
pinctrl-imx8mn.c pinctrl: imx8mn: Constify imx_pinctrl_soc_info 2021-07-30 12:03:47 +02:00
pinctrl-imx8mp.c pinctrl: imx: Disallow driver unbind 2021-04-08 16:00:53 +02:00
pinctrl-imx8mq.c pinctrl: Explicitly include correct DT includes 2023-07-20 21:41:24 +02:00
pinctrl-imx8qm.c pinctrl: imx: Remove unneeded of_match_ptr() 2021-04-08 16:00:53 +02:00
pinctrl-imx8qxp.c pinctrl: Explicitly include correct DT includes 2023-07-20 21:41:24 +02:00
pinctrl-imx8ulp.c pinctrl: Explicitly include correct DT includes 2023-07-20 21:41:24 +02:00
pinctrl-imx23.c pinctrl: Explicitly include correct DT includes 2023-07-20 21:41:24 +02:00
pinctrl-imx25.c pinctrl: Explicitly include correct DT includes 2023-07-20 21:41:24 +02:00
pinctrl-imx27.c pinctrl: Explicitly include correct DT includes 2023-07-20 21:41:24 +02:00
pinctrl-imx28.c pinctrl: Explicitly include correct DT includes 2023-07-20 21:41:24 +02:00
pinctrl-imx35.c pinctrl: Explicitly include correct DT includes 2023-07-20 21:41:24 +02:00
pinctrl-imx50.c pinctrl: Explicitly include correct DT includes 2023-07-20 21:41:24 +02:00
pinctrl-imx51.c pinctrl: Explicitly include correct DT includes 2023-07-20 21:41:24 +02:00
pinctrl-imx53.c pinctrl: Explicitly include correct DT includes 2023-07-20 21:41:24 +02:00
pinctrl-imx93.c pinctrl: Explicitly include correct DT includes 2023-07-20 21:41:24 +02:00
pinctrl-imxrt1050.c pinctrl: Explicitly include correct DT includes 2023-07-20 21:41:24 +02:00
pinctrl-imxrt1170.c pinctrl: Explicitly include correct DT includes 2023-07-20 21:41:24 +02:00
pinctrl-mxs.c pinctrl: freescale: mxs: Fix refcount of child 2024-08-03 08:54:07 +02:00
pinctrl-mxs.h pinctrl: mxs: avoid defines prefixed with CONFIG 2022-12-29 02:05:16 +01:00
pinctrl-scu.c pinctrl: freescale: Fix a memory out of bounds when num_configs is 1 2023-06-16 14:59:03 +02:00
pinctrl-vf610.c pinctrl: Explicitly include correct DT includes 2023-07-20 21:41:24 +02:00