kernel_samsung_a53x/drivers/pinctrl
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
..
actions Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
aspeed pinctrl: pinctrl-aspeed-g6: Fix register offset for pinconf of GPIOR-T 2024-11-19 11:32:41 +01:00
bcm Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
berlin Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cirrus pinctrl: lochnagar: Don't build on MIPS 2024-11-18 12:12:11 +01:00
freescale pinctrl: freescale: mxs: Fix refcount of child 2024-11-23 23:20:11 +01:00
intel Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mediatek pinctrl: mediatek: paris: Rework support for PIN_CONFIG_{INPUT,OUTPUT}_ENABLE 2024-11-19 11:32:41 +01:00
meson pinctrl/meson: fix typo in PDM's pin name 2024-11-19 11:32:41 +01:00
mvebu Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
nomadik Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
nuvoton Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pxa Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qcom Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
renesas pinctrl: renesas: checker: Limit cfg reg enum checks to provided IDs 2024-11-19 09:23:14 +01:00
samsung Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sirf Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spear Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sprd Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
stm32 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sunxi Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tegra Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ti pinctrl: ti: ti-iodelay: fix possible memory leak when pinctrl_enable() fails 2024-11-23 23:20:11 +01:00
uniphier Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
visconti Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vt8500 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
zte Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
core.c pinctrl: core: fix possible memory leak when pinctrl_enable() fails 2024-11-23 23:20:11 +01:00
core.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
devicetree.c pinctrl: devicetree: fix refcount leak in pinctrl_dt_to_map() 2024-11-19 11:32:42 +01:00
devicetree.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinconf-generic.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinconf.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinconf.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-amd.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-amd.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-artpec6.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-as3722.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-at91-pio4.c pinctrl: at91-pio4: use dedicated lock class for IRQ 2024-11-18 12:11:59 +01:00
pinctrl-at91.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-at91.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-axp209.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-bm1880.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-coh901.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-coh901.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-da850-pupd.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-da9062.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-digicolor.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-equilibrium.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-equilibrium.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-falcon.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-gemini.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-ingenic.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-lantiq.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-lantiq.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-lpc18xx.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-max77620.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-mcp23s08.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-mcp23s08.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-mcp23s08_i2c.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-mcp23s08_spi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-ocelot.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-oxnas.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-palmas.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-pic32.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-pic32.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-pistachio.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-rk805.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-rockchip.c pinctrl: rockchip: update rk3308 iomux routes 2024-11-23 23:20:11 +01:00
pinctrl-rockchip.h pinctrl: rockchip: use dedicated pinctrl type for RK3328 2024-11-19 14:19:31 +01:00
pinctrl-samsung-s2mpm07.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-samsung-s2mps26.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-samsung-s2mpu13.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-samsung-s2mpu14.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-single.c pinctrl: single: fix possible memory leak when pinctrl_enable() fails 2024-11-23 23:20:11 +01:00
pinctrl-st.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-stmfx.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-sx150x.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-tb10x.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-u300.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-utils.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-utils.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-xway.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinctrl-zynq.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinmux.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pinmux.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00