mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2025-12-17 15:48:08 +00:00
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>
This commit is contained in:
parent
31b980c069
commit
bb45f5433f
@ -469,6 +469,7 @@ static int vpif_probe(struct platform_device *pdev)
|
|||||||
endpoint);
|
endpoint);
|
||||||
if (!endpoint)
|
if (!endpoint)
|
||||||
return 0;
|
return 0;
|
||||||
|
of_node_put(endpoint);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* For DT platforms, manually create platform_devices for
|
* For DT platforms, manually create platform_devices for
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user