diff options
author | Nishka Dasgupta <nishkadg.linux@gmail.com> | 2019-08-15 11:35:03 +0530 |
---|---|---|
committer | Geert Uytterhoeven <geert+renesas@glider.be> | 2019-08-23 09:08:10 +0200 |
commit | ab6366ee887a273d2d33a204b7ea6e6fb2fe20e4 (patch) | |
tree | 0db1fc1d8e2b4c04c61325170988a0fe5f890de9 /.gitignore | |
parent | pinctrl: sh-pfc: Include the right header (diff) | |
download | linux-dev-ab6366ee887a273d2d33a204b7ea6e6fb2fe20e4.tar.xz linux-dev-ab6366ee887a273d2d33a204b7ea6e6fb2fe20e4.zip |
pinctrl: rza1: Add of_node_put() before return
Each iteration of for_each_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
three places.
Issue found with Coccinelle.
Signed-off-by: Nishka Dasgupta <nishkadg.linux@gmail.com>
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions