]> git.baikalelectronics.ru Git - kernel.git/commit
media: coda: Fix missing put_device() call in coda_get_vdoa_data
authorMiaoqian Lin <linmq006@gmail.com>
Wed, 12 Jan 2022 11:05:54 +0000 (12:05 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 28 Jan 2022 12:16:21 +0000 (13:16 +0100)
commit0ef5c563046ec79d801f8cb5437416978d1c07d9
treefb5f2c0c0105e66298413f7d4401e7249def5572
parentf67cd051db191ef437b74696d7b066e08867dd6e
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: 53fc3595c726 ("[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>
drivers/media/platform/coda/coda-common.c