diff options
author | Alexey Khoroshilov <khoroshilov@ispras.ru> | 2018-10-20 13:50:19 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-02-12 19:44:52 +0100 |
commit | 426a61bfe4360f74d1fc6a14c94c3cda0dc987d1 (patch) | |
tree | 37993dff3be9fe44cbf64b0736e0f1ae5af42c78 /crypto/md4.c | |
parent | 05461ec758b9c4b4ee56517b05cd7392daca494b (diff) |
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>
Diffstat (limited to 'crypto/md4.c')
0 files changed, 0 insertions, 0 deletions