mirror of
https://github.com/torvalds/linux.git
synced 2026-05-31 02:24:24 +02:00
media: coda: Fix missing put_device() call in coda_get_vdoa_data
The reference taken by 'of_find_device_by_node()' must be released when
not needed anymore.
Add the corresponding 'put_device()' in the error handling path.
Fixes: e7f3c54810 ("[media] coda: use VDOA for un-tiling custom macroblock format")
Signed-off-by: Miaoqian Lin <linmq006@gmail.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
f9e795eaa6
commit
ca85d27153
|
|
@ -409,6 +409,7 @@ static struct vdoa_data *coda_get_vdoa_data(void)
|
|||
if (!vdoa_data)
|
||||
vdoa_data = ERR_PTR(-EPROBE_DEFER);
|
||||
|
||||
put_device(&vdoa_pdev->dev);
|
||||
out:
|
||||
of_node_put(vdoa_node);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user