media: amphion: Add missing of_node_put() in vpu_core_parse_dt()
authorXiongfeng Wang <wangxiongfeng2@huawei.com>
Wed, 16 Mar 2022 08:19:38 +0000 (09:19 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 18 Mar 2022 05:04:58 +0000 (06:04 +0100)
commit5d1ca138026ed133f3d11fe0785de82bdee3c648
treefadbe4ee684b756f4794df7c4c23689cf8c09ed1
parent77119adb62dda4918cb21755775d3cacd3e83097
media: amphion: Add missing of_node_put() in vpu_core_parse_dt()

of_parse_phandle() 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/20220316081938.80819-1-wangxiongfeng2@huawei.com
Signed-off-by: Xiongfeng Wang <wangxiongfeng2@huawei.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/platform/amphion/vpu_core.c