forked from Minki/linux
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> |
||
---|---|---|
.. | ||
vdec | ||
venc | ||
Makefile | ||
mtk_vcodec_dec_drv.c | ||
mtk_vcodec_dec_pm.c | ||
mtk_vcodec_dec_pm.h | ||
mtk_vcodec_dec.c | ||
mtk_vcodec_dec.h | ||
mtk_vcodec_drv.h | ||
mtk_vcodec_enc_drv.c | ||
mtk_vcodec_enc_pm.c | ||
mtk_vcodec_enc_pm.h | ||
mtk_vcodec_enc.c | ||
mtk_vcodec_enc.h | ||
mtk_vcodec_intr.c | ||
mtk_vcodec_intr.h | ||
mtk_vcodec_util.c | ||
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 | ||
venc_drv_base.h | ||
venc_drv_if.c | ||
venc_drv_if.h | ||
venc_ipi_msg.h | ||
venc_vpu_if.c | ||
venc_vpu_if.h |