diff options
author | Yang Yingliang <yangyingliang@huawei.com> | 2022-05-11 09:55:48 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@kernel.org> | 2022-06-20 12:30:30 +0300 |
commit | bb45f5433f23cf103ba29c9692ee553e061f2cb4 (patch) | |
tree | 43f09f1fff3b9f168c0d81ee4de8f1f57d32c55e /drivers/media/platform/ti | |
parent | 31b980c06900796070cbbe036483aca4acbdc04f (diff) | |
download | linux-bb45f5433f23cf103ba29c9692ee553e061f2cb4.tar.xz |
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>
Diffstat (limited to 'drivers/media/platform/ti')
-rw-r--r-- | drivers/media/platform/ti/davinci/vpif.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/platform/ti/davinci/vpif.c b/drivers/media/platform/ti/davinci/vpif.c index 97ef770266af..da27da4c165a 100644 --- a/drivers/media/platform/ti/davinci/vpif.c +++ b/drivers/media/platform/ti/davinci/vpif.c @@ -469,6 +469,7 @@ static int vpif_probe(struct platform_device *pdev) endpoint); if (!endpoint) return 0; + of_node_put(endpoint); /* * For DT platforms, manually create platform_devices for |