]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 23 Sep 2023 09:11:05 +0000 (11:11 +0200)
commit8ba9d91c8f21f070af2049f114c206a8f2d5c71e
tree12aa7f03c7bef704b5ff1775220487537a7f1f27
parentb78796126f80268dd279309dd2c4f315e3fe9328
media: mdp3: Fix resource leaks in of_find_device_by_node

[ Upstream commit 35ca8ce495366909b4c2e701d1356570dd40c4e2 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/media/platform/mediatek/mdp3/mtk-mdp3-comp.c