]> 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)
commit809448c02fc620e19acf9702c6dd92159f50bd00
treefb5f2c0c0105e66298413f7d4401e7249def5572
parent4d95e6033f90f3fa9ec8a24493c59f39cb9e57bb
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: 60f20a77b199 ("[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