android_kernel_samsung_a7y1.../drivers/phy
Yoshihiro Shimoda a01ad79474 phy: renesas: rcar-gen2: Fix memory leak at error paths
[ Upstream commit d4a36e82924d3305a17ac987a510f3902df5a4b2 ]

This patch fixes memory leak at error paths of the probe function.
In for_each_child_of_node, if the loop returns, the driver should
call of_put_node() before returns.

Reported-by: Julia Lawall <julia.lawall@lip6.fr>
Fixes: 1233f59f745b237 ("phy: Renesas R-Car Gen2 PHY driver")
Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-04-06 20:06:04 +02:00
..
Kconfig A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Makefile A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
phy-armada375-usb2.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
phy-bcm-cygnus-pcie.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
phy-bcm-kona-usb2.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
phy-berlin-sata.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
phy-berlin-usb.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
phy-brcmstb-sata.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
phy-core.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
phy-dm816x-usb.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
phy-exynos-debug.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
phy-exynos-debugfs.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
phy-exynos-displayport.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
phy-exynos-dp-video.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
phy-exynos-mipi-video.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
phy-exynos-mipi.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
phy-exynos-usb3p1-reg.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
phy-exynos-usb3p1.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
phy-exynos-usb3p1.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
phy-exynos-usbdp-reg-cmn.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
phy-exynos-usbdp-reg-dp.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
phy-exynos-usbdp-reg-pcs.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
phy-exynos-usbdp-reg-trsv.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
phy-exynos-usbdp-reg.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
phy-exynos-usbdp.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
phy-exynos-usbdp.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
phy-exynos-usbdrd.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
phy-exynos-usbdrd.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
phy-exynos-usbdrd3.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
phy-exynos4x12-usb2.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
phy-exynos5-usbdrd.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
phy-exynos4210-usb2.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
phy-exynos5250-sata.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
phy-exynos5250-usb2.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
phy-exynos8895-mipi.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
phy-hix5hd2-sata.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
phy-lpc18xx-usb-otg.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
phy-miphy28lp.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
phy-miphy365x.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
phy-mt65xx-usb3.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
phy-mvebu-sata.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
phy-omap-control.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
phy-omap-usb2.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
phy-pistachio-usb.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
phy-pxa-28nm-hsic.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
phy-pxa-28nm-usb2.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
phy-qcom-apq8064-sata.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
phy-qcom-ipq806x-sata.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
phy-qcom-ufs-i.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
phy-qcom-ufs-qmp-14nm.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
phy-qcom-ufs-qmp-14nm.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
phy-qcom-ufs-qmp-20nm.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
phy-qcom-ufs-qmp-20nm.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
phy-qcom-ufs.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
phy-rcar-gen2.c phy: renesas: rcar-gen2: Fix memory leak at error paths 2020-04-06 20:06:04 +02:00
phy-rockchip-usb.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
phy-s5pv210-usb2.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
phy-samsung-usb-cal.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
phy-samsung-usb2.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
phy-samsung-usb2.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
phy-samsung-usb3-cal-combo.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
phy-samsung-usb3-cal.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
phy-samsung-usb3-cal.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
phy-spear1310-miphy.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
phy-spear1340-miphy.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
phy-stih41x-usb.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
phy-stih407-usb.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
phy-sun4i-usb.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
phy-sun9i-usb.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
phy-ti-pipe3.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
phy-tusb1210.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
phy-twl4030-usb.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
phy-xgene.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ulpi_phy.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30