linux/drivers/bus
Pan Bian 3a76ec2882 bus: qcom: Put child node before return
[ Upstream commit ac6ad7c2a862d682bb584a4bc904d89fa7721af8 ]

Put child node before return to fix potential reference count leak.
Generally, the reference count of child is incremented and decremented
automatically in the macro for_each_available_child_of_node() and should
be decremented manually if the loop is broken in loop body.

Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Fixes: 335a127548 ("bus: qcom: add EBI2 driver")
Signed-off-by: Pan Bian <bianpan2016@163.com>
Link: https://lore.kernel.org/r/20210121114907.109267-1-bianpan2016@163.com
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-05-14 09:44:19 +02:00
..
fsl-mc
Kconfig
Makefile
arm-cci.c
brcmstb_gisb.c
da8xx-mstpri.c
hisi_lpc.c
imx-weim.c
mips_cdmm.c
moxtet.c
mvebu-mbus.c
omap-ocp2scp.c
omap_l3_noc.c
omap_l3_noc.h
omap_l3_smx.c
omap_l3_smx.h
qcom-ebi2.c bus: qcom: Put child node before return 2021-05-14 09:44:19 +02:00
simple-pm-bus.c
sun50i-de2.c
sunxi-rsb.c
tegra-aconnect.c
tegra-gmi.c
ti-sysc.c bus: ti-sysc: Probe for l4_wkup and l4_cfg interconnect devices first 2021-05-11 14:04:04 +02:00
ts-nbus.c
uniphier-system-bus.c
vexpress-config.c