Nishka Dasgupta 2dbfc65250 media: i2c: tvp5150: Add of_node_put() before goto
Each iteration of for_each_available_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 four places.
Issue found with Coccinelle.

Signed-off-by: Nishka Dasgupta <nishkadg.linux@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2019-08-13 11:50:04 -03:00
..
2019-06-11 12:09:28 -04:00
2019-06-11 12:09:28 -04:00
2018-12-25 13:00:14 -08:00
2019-07-09 09:47:22 -07:00
2019-03-01 09:29:58 -05:00
2019-07-09 09:47:22 -07:00
2019-03-01 09:29:58 -05:00
2019-07-09 09:47:22 -07:00
2019-03-01 09:29:58 -05:00
2018-12-25 13:00:14 -08:00
2019-03-01 09:29:58 -05:00
2019-03-01 09:29:58 -05:00