2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-23 04:34:11 +08:00
linux-next/drivers/media/platform/mtk-vcodec
Wen Yang 15b5c5b1dc media: mtk-vcodec: fix leaked of_node references
The call to of_find_device_by_node returns a node pointer with refcount
incremented thus it must be explicitly decremented after the last
usage.

Detected by coccinelle with the following warnings:
drivers/media/platform/mtk-vcodec/mtk_vcodec_dec_pm.c:60:3-9: ERROR: missing of_node_put; acquired a node pointer with refcount incremented on line 38, but without a corresponding object release within this function.
drivers/media/platform/mtk-vcodec/mtk_vcodec_dec_pm.c:63:2-8: ERROR: missing of_node_put; acquired a node pointer with refcount incremented on line 38, but without a corresponding object release within this function.
drivers/media/platform/mtk-vcodec/mtk_vcodec_dec_pm.c:72:3-9: ERROR: missing of_node_put; acquired a node pointer with refcount incremented on line 38, but without a corresponding object release within this function.

Signed-off-by: Wen Yang <wen.yang99@zte.com.cn>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2019-05-29 10:26:09 -04:00
..
vdec media: mtk-vcodec: fix vp9 content playback error with show exist frame 2019-04-22 11:42:19 -04:00
venc media: venc: don't use kernel-doc for undescribed enums 2017-11-30 04:18:54 -05:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
mtk_vcodec_dec_drv.c [media] mtk-vcodec: use V4L2_DEC_CMD_STOP to implement flush 2017-02-03 07:49:24 -02:00
mtk_vcodec_dec_pm.c media: mtk-vcodec: fix leaked of_node references 2019-05-29 10:26:09 -04:00
mtk_vcodec_dec_pm.h [media] vcodec: mediatek: Add Mediatek V4L2 Video Decoder Driver 2016-10-21 10:49:26 -02:00
mtk_vcodec_dec.c media: mtk-vcodec: enlarge struct vdec_pic_info fields 2019-04-22 11:02:39 -04:00
mtk_vcodec_dec.h media: mtk-vcodec: remove ready_to_display 2019-03-29 07:42:12 -04:00
mtk_vcodec_drv.h media: mtk-vcodec: enlarge struct vdec_pic_info fields 2019-04-22 11:02:39 -04:00
mtk_vcodec_enc_drv.c [media] mtk-vcodec: remove redundant return value check of platform_get_resource() 2017-03-22 11:23:20 -03:00
mtk_vcodec_enc_pm.c media: mtk-vcodec: Using common interface to manage vdec/venc clock 2019-01-31 09:24:54 -02:00
mtk_vcodec_enc_pm.h
mtk_vcodec_enc.c media: mtk-vcodec: fix access to incorrect planes member 2019-03-29 07:41:46 -04:00
mtk_vcodec_enc.h
mtk_vcodec_intr.c [media] vcodec: mediatek: Add Mediatek V4L2 Video Decoder Driver 2016-10-21 10:49:26 -02:00
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 cross-tree: phase out dma_zalloc_coherent() 2019-01-08 07:58:37 -05:00
mtk_vcodec_util.h media: mtk-vcodec: Remove VA from encoder frame buffers 2018-12-03 14:29:14 -05:00
vdec_drv_base.h [media] vcodec: mediatek: Add Mediatek VP9 Video Decoder Driver 2016-10-21 12:09:32 -02:00
vdec_drv_if.c [media] vcodec: mediatek: Add Mediatek VP9 Video Decoder Driver 2016-10-21 12:09:32 -02:00
vdec_drv_if.h media: platform: fix several typos 2019-03-01 09:35:21 -05:00
vdec_ipi_msg.h [media] vcodec: mediatek: Add Mediatek V4L2 Video Decoder Driver 2016-10-21 10:49:26 -02:00
vdec_vpu_if.c [media] mtk-vcodec: fix build warnings without DEBUG 2017-02-08 12:08:20 -02:00
vdec_vpu_if.h media: platform: fix several typos 2019-03-01 09:35:21 -05:00
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 media: mtk-vcodec: Remove VA from encoder frame buffers 2018-12-03 14:29:14 -05:00
venc_ipi_msg.h
venc_vpu_if.c [media] mtk-vcodec: fix build warnings without DEBUG 2017-02-08 12:08:20 -02:00
venc_vpu_if.h