diff options
| author | Nishka Dasgupta <[email protected]> | 2019-07-09 14:24:54 -0300 |
|---|---|---|
| committer | Mauro Carvalho Chehab <[email protected]> | 2019-08-13 11:49:46 -0300 |
| commit | 22ff7d4ca3f748e3b685fd2385afda18b9fa0258 (patch) | |
| tree | 98d4fde3ca5cf5ac78395337dbb68f56fc5772c5 /tools/perf/scripts/python | |
| parent | 4fd22938569c14f6092c05880ca387409d78355f (diff) | |
media: platform: mtk-mdp: mtk_mdp_core: Add of_node_put() before goto
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 before the goto in two
places.
Issue found with Coccinelle.
Signed-off-by: Nishka Dasgupta <[email protected]>
Acked-by: Houlong Wei <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions