media: mdp3: Fix resource leaks in of_find_device_by_node
authorLu Hongfei <luhongfei@vivo.com>
Tue, 30 May 2023 10:17:18 +0000 (18:17 +0800)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Wed, 19 Jul 2023 10:57:47 +0000 (12:57 +0200)
commit35ca8ce495366909b4c2e701d1356570dd40c4e2
tree1c9f2499b6e1797bde65fcc565dd5ff9e631223b
parentea9ef6c2e001c5dc94bee35ebd1c8a98621cf7b8
media: mdp3: Fix resource leaks in of_find_device_by_node

Use put_device to release the object get through of_find_device_by_node,
avoiding resource leaks.

Signed-off-by: Lu Hongfei <luhongfei@vivo.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/platform/mediatek/mdp3/mtk-mdp3-comp.c