diff options
author | Nishka Dasgupta <nishkadg.linux@gmail.com> | 2019-07-09 22:43:16 +0530 |
---|---|---|
committer | Miquel Raynal <miquel.raynal@bootlin.com> | 2019-07-25 14:21:44 +0200 |
commit | a08e42987118952c98707f0b29cf0e5f4fd2e00b (patch) | |
tree | 157237101395a25b9b785c2cf5efa7883219a2e2 /block | |
parent | c436f68beeb20f2f92937677db1d9069b0dd2a3d (diff) | |
download | linux-a08e42987118952c98707f0b29cf0e5f4fd2e00b.tar.bz2 |
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 'block')
0 files changed, 0 insertions, 0 deletions