Yoshihiro Shimoda d4a36e8292 phy: renesas: rcar-gen2: Fix memory leak at error paths
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>
2019-06-12 15:35:44 +05:30
..
2019-04-25 11:27:48 +02:00
2019-02-07 11:11:06 +05:30
2018-09-26 13:09:39 +05:30
2019-05-08 10:03:52 -07:00
2019-05-08 10:03:52 -07:00
2018-12-12 10:01:51 +05:30
2018-12-12 10:01:51 +05:30