diff options
| author | Alexey Khoroshilov <khoroshilov@ispras.ru> | 2018-10-20 13:50:19 -0400 |
|---|---|---|
| committer | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2018-11-23 04:34:10 -0500 |
| commit | 8ea0f2ba0fa3f91ea1b8d823a54b042026ada6b3 (patch) | |
| tree | cb2be044b882e1506edc3ea807a48169e690c49c /drivers/media/v4l2-core/v4l2-ioctl.c | |
| parent | media: video-i2c: support changing frame interval (diff) | |
| download | linux-8ea0f2ba0fa3f91ea1b8d823a54b042026ada6b3.tar.gz linux-8ea0f2ba0fa3f91ea1b8d823a54b042026ada6b3.zip | |
media: mtk-vcodec: Release device nodes in mtk_vcodec_init_enc_pm()
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>
Diffstat (limited to 'drivers/media/v4l2-core/v4l2-ioctl.c')
0 files changed, 0 insertions, 0 deletions
