diff options
author | 2019-07-09 22:43:16 +0530 | |
---|---|---|
committer | 2019-07-25 14:21:44 +0200 | |
commit | a08e42987118952c98707f0b29cf0e5f4fd2e00b (patch) | |
tree | 157237101395a25b9b785c2cf5efa7883219a2e2 /lib/xarray.c | |
parent | mtd: rawnand: oxnas: Add of_node_put() (diff) | |
download | wireguard-linux-a08e42987118952c98707f0b29cf0e5f4fd2e00b.tar.xz wireguard-linux-a08e42987118952c98707f0b29cf0e5f4fd2e00b.zip |
mtd: rawnand: tango: 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.
Issue found with Coccinelle.
Signed-off-by: Nishka Dasgupta <nishkadg.linux@gmail.com>
Acked-by: Mans Rullgard <mans@mansr.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Diffstat (limited to 'lib/xarray.c')
0 files changed, 0 insertions, 0 deletions