media: mtk-vcodec: Add missing of_node_put() in mtk_vdec_hw_prob_done()
authorXiongfeng Wang <wangxiongfeng2@huawei.com>
Wed, 16 Mar 2022 12:34:52 +0000 (13:34 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 18 Mar 2022 05:04:32 +0000 (06:04 +0100)
commit77119adb62dda4918cb21755775d3cacd3e83097
tree4e0250beb10a5d69cbf864a9030a642d78b6ac6a
parentf4a4f9a54b2c52b0c6f40d0f37a129e9909fa62d
media: mtk-vcodec: Add missing of_node_put() in mtk_vdec_hw_prob_done()

of_find_compatible_node() will increment the refcount of the returned
device_node. Calling of_node_put() to avoid the refcount leak.

Link: https://lore.kernel.org/linux-media/20220316123452.186166-1-wangxiongfeng2@huawei.com
Signed-off-by: Xiongfeng Wang <wangxiongfeng2@huawei.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/platform/mediatek/vcodec/mtk_vcodec_dec_hw.c