linux/drivers/phy/marvell
Nishka Dasgupta beae796d66 phy: marvell: phy-mvebu-a3700-comphy: Add of_node_put() before return
Each iteration of for_each_available_child_of_node puts the previous
node, but in the case of a return from the middle of the loop, there is
no put, thus causing a memory leak. Hence add an of_node_put before the
return in two places.
Issue found with Coccinelle.

Signed-off-by: Nishka Dasgupta <nishkadg.linux@gmail.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
2019-08-23 09:40:56 +05:30
..
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile USB/PHY patches for 5.1-rc1 2019-03-06 16:48:27 -08:00
phy-armada38x-comphy.c phy: marvell: phy-armada38x-comphy: Add of_node_put() before return 2019-08-23 09:40:52 +05:30
phy-armada375-usb2.c phy: armada375-usb2: switch to SPDX license identifier 2019-02-07 11:10:45 +05:30
phy-berlin-sata.c phy: fix build breakage: add PHY_MODE_SATA 2019-01-16 18:00:54 +05:30
phy-berlin-usb.c phy: berlin: switch to SPDX license identifier 2018-07-10 13:45:12 +05:30
phy-mvebu-a3700-comphy.c phy: marvell: phy-mvebu-a3700-comphy: Add of_node_put() before return 2019-08-23 09:40:56 +05:30
phy-mvebu-a3700-utmi.c phy: fix platform_no_drv_owner.cocci warnings 2019-04-17 12:06:02 +05:30
phy-mvebu-cp110-comphy.c phy: marvell: phy-mvebu-cp110-comphy: Add of_node_put() before return 2019-08-23 09:40:55 +05:30
phy-mvebu-sata.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
phy-pxa-28nm-hsic.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 282 2019-06-05 17:36:37 +02:00
phy-pxa-28nm-usb2.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 282 2019-06-05 17:36:37 +02:00
phy-pxa-usb.c phy: phy-pxa-usb: add a new driver 2018-10-18 19:44:39 +02:00