]> git.karo-electronics.de Git - linux-beck.git/commit
[media] v4l: of: Drop acquired reference to node when getting next endpoint
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Wed, 3 Jul 2013 02:05:51 +0000 (23:05 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Sun, 18 Aug 2013 11:48:33 +0000 (08:48 -0300)
commit5045b495196a624c17a1ef271cbdaa6d3e2d1097
tree0c3cbe83c0ac41dd719008f5683adc21a8ab85f5
parent91f9241fd3487cd959abcf8c210af620ebfeb2cd
[media] v4l: of: Drop acquired reference to node when getting next endpoint

The of_get_child_by_name() function takes a reference to the node it
returns. Make sure to drop it when looking for the ports node in
v4l2_of_get_next_endpoint().

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/v4l2-core/v4l2-of.c