aboutsummaryrefslogtreecommitdiff
path: root/drivers/fpga/fpga-mgr.c
diff options
context:
space:
mode:
authorNishka Dasgupta <[email protected]>2019-07-09 22:43:16 +0530
committerMiquel Raynal <[email protected]>2019-07-25 14:21:44 +0200
commita08e42987118952c98707f0b29cf0e5f4fd2e00b (patch)
tree157237101395a25b9b785c2cf5efa7883219a2e2 /drivers/fpga/fpga-mgr.c
parentc436f68beeb20f2f92937677db1d9069b0dd2a3d (diff)
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 <[email protected]> Acked-by: Mans Rullgard <[email protected]> Signed-off-by: Miquel Raynal <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions