diff options
author | Nishka Dasgupta <nishkadg.linux@gmail.com> | 2019-07-09 19:24:54 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2019-08-13 16:49:46 +0200 |
commit | 22ff7d4ca3f748e3b685fd2385afda18b9fa0258 (patch) | |
tree | 98d4fde3ca5cf5ac78395337dbb68f56fc5772c5 /net/can | |
parent | media: fdp1: Reduce FCP not found message level to debug (diff) | |
download | linux-22ff7d4ca3f748e3b685fd2385afda18b9fa0258.tar.xz linux-22ff7d4ca3f748e3b685fd2385afda18b9fa0258.zip |
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 <nishkadg.linux@gmail.com>
Acked-by: Houlong Wei <houlong.wei@mediatek.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'net/can')
0 files changed, 0 insertions, 0 deletions