linux-uconsole/drivers/media/platform/mtk-vcodec
Alexey Khoroshilov 9eb74335f6 media: mtk-vcodec: Release device nodes in mtk_vcodec_init_enc_pm()
[ Upstream commit 8ea0f2ba0f ]

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:47:01 +01:00
..
vdec
venc
Makefile
mtk_vcodec_dec.c media: mtk-vcodec: Support VP9 profile in decoder 2018-07-04 09:33:17 -04:00
mtk_vcodec_dec.h
mtk_vcodec_dec_drv.c
mtk_vcodec_dec_pm.c
mtk_vcodec_dec_pm.h
mtk_vcodec_drv.h
mtk_vcodec_enc.c media: mem2mem: Remove unused v4l2_m2m_ops .lock/.unlock 2018-06-28 07:56:49 -04:00
mtk_vcodec_enc.h
mtk_vcodec_enc_drv.c
mtk_vcodec_enc_pm.c media: mtk-vcodec: Release device nodes in mtk_vcodec_init_enc_pm() 2019-02-12 19:47:01 +01:00
mtk_vcodec_enc_pm.h
mtk_vcodec_intr.c
mtk_vcodec_intr.h
mtk_vcodec_util.c media: mtk-vcodec: add missing MODULE_LICENSE/DESCRIPTION 2017-12-08 11:14:23 -05:00
mtk_vcodec_util.h
vdec_drv_base.h
vdec_drv_if.c
vdec_drv_if.h
vdec_ipi_msg.h
vdec_vpu_if.c
vdec_vpu_if.h media: fix usage of whitespaces and on indentation 2018-01-04 13:12:01 -05:00
venc_drv_base.h
venc_drv_if.c
venc_drv_if.h
venc_ipi_msg.h
venc_vpu_if.c
venc_vpu_if.h