media: davinci: vpif: add missing of_node_put() in vpif_probe()
authorYang Yingliang <yangyingliang@huawei.com>
Wed, 11 May 2022 06:55:48 +0000 (07:55 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Mon, 20 Jun 2022 09:30:30 +0000 (10:30 +0100)
commitbb45f5433f23cf103ba29c9692ee553e061f2cb4
tree43f09f1fff3b9f168c0d81ee4de8f1f57d32c55e
parent31b980c06900796070cbbe036483aca4acbdc04f
media: davinci: vpif: add missing of_node_put() in vpif_probe()

of_graph_get_next_endpoint() returns an 'endpoint' node pointer
with refcount incremented. The refcount should be decremented
before returning from vpif_probe().

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/platform/ti/davinci/vpif.c