android_kernel_sony_sdm845/drivers/media/platform/mtk-vcodec
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Alexey Khoroshilov 426a61bfe4 media: mtk-vcodec: Release device nodes in mtk_vcodec_init_enc_pm()
[ Upstream commit 8ea0f2ba0fa3f91ea1b8d823a54b042026ada6b3 ]

of_parse_phandle() returns the device node with refcount incremented.
There are two nodes that are used temporary in mtk_vcodec_init_enc_pm(),
but their refcounts are not decremented.

The patch adds one of_node_put() and fixes returning error codes.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-02-12 19:44:52 +01:00
..
venc Linux 4.8 2016-10-05 16:43:53 -03:00
Makefile [media] vcodec: mediatek: Add Mediatek H264 Video Encoder Driver 2016-07-08 14:12:51 -03:00
mtk_vcodec_drv.h Linux 4.8 2016-10-05 16:43:53 -03:00
mtk_vcodec_enc.c Linux 4.8 2016-10-05 16:43:53 -03:00
mtk_vcodec_enc.h
mtk_vcodec_enc_drv.c [media] vcodec:mediatek: Fix fops_vcodec_release flow for V4L2 Encoder 2016-08-24 11:21:43 -03:00
mtk_vcodec_enc_pm.c media: mtk-vcodec: Release device nodes in mtk_vcodec_init_enc_pm() 2019-02-12 19:44:52 +01:00
mtk_vcodec_enc_pm.h
mtk_vcodec_intr.c
mtk_vcodec_intr.h [media] vcodec:mediatek:code refine for v4l2 Encoder driver 2016-08-24 11:20:50 -03:00
mtk_vcodec_util.c
mtk_vcodec_util.h
venc_drv_base.h
venc_drv_if.c [media] mtk-vcodec: constify venc_common_if structures 2016-08-24 08:46:19 -03:00
venc_drv_if.h
venc_ipi_msg.h
venc_vpu_if.c [media] mtk-vcodec: fix compiler warning 2016-07-09 07:47:29 -03:00
venc_vpu_if.h