linux/drivers/mtd/nand
Nishka Dasgupta 1670e678a8 mtd: rawnand: ingenic: 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>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
2019-07-25 14:21:44 +02:00
..
onenand This pull-request contains the following changes for MTD: 2019-07-13 15:42:44 -07:00
raw mtd: rawnand: ingenic: Add of_node_put() before return 2019-07-25 14:21:44 +02:00
spi This pull-request contains the following changes for MTD: 2019-07-13 15:42:44 -07:00
bbt.c
core.c mtd: nand: Add max_bad_eraseblocks_per_lun info to memorg 2019-04-08 10:21:08 +02:00
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile