diff options
author | Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> | 2019-05-28 14:04:02 +0900 |
---|---|---|
committer | Kishon Vijay Abraham I <kishon@ti.com> | 2019-06-12 15:35:44 +0530 |
commit | d4a36e82924d3305a17ac987a510f3902df5a4b2 (patch) | |
tree | df76ae9f382d0050b4bf7cb0d3e50fe9e5ed7fc8 /init | |
parent | d98010817a26eba8d4d1e8a639e0b7d7f042308a (diff) | |
download | linux-d4a36e82924d3305a17ac987a510f3902df5a4b2.tar.bz2 |
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>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions