diff options
author | 2019-07-09 22:40:16 +0530 | |
---|---|---|
committer | 2019-07-25 14:21:44 +0200 | |
commit | c436f68beeb20f2f92937677db1d9069b0dd2a3d (patch) | |
tree | e3f28c61259c14331eb2f152a2a7261e9fc01746 /lib/xarray.c | |
parent | mtd: rawnand: vf610: Add of_node_put() before goto (diff) | |
download | wireguard-linux-c436f68beeb20f2f92937677db1d9069b0dd2a3d.tar.xz wireguard-linux-c436f68beeb20f2f92937677db1d9069b0dd2a3d.zip |
mtd: rawnand: oxnas: Add of_node_put()
Each iteration of for_each_child_of_node puts the previous node, but in
the case of a goto from the middle of the loop, there is no put, thus
causing a memory leak. Hence add an of_node_put under a new goto to put
the node at a loop exit.
Issue found with Coccinelle.
Signed-off-by: Nishka Dasgupta <nishkadg.linux@gmail.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Diffstat (limited to 'lib/xarray.c')
0 files changed, 0 insertions, 0 deletions